mirror of
https://github.com/alecmuffett/real-world-onion-sites.git
synced 2025-02-02 09:25:03 -05:00
commit: small sanity check
This commit is contained in:
parent
7951ad2660
commit
36f5052c26
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user