commit: small sanity check

This commit is contained in:
Alec Muffett 2019-11-16 19:55:57 +00:00
parent 7951ad2660
commit 36f5052c26

View File

@ -127,6 +127,8 @@ class Database:
class URL:
def __init__(self, url):
if not (url.startswith('http://') or url.startswith('https://')):
raise RuntimeError('not a proper url: ' + url)
self.url = url
self.attempt = 0
self.last_code = None