Raise
This commit is contained in:
1 parent
e87dee3bdf
commit
83c962166d
1 file changed
+2
-2
@@ -131,7 +131,7 @@ class Url():
|
||||
try:
|
||||
response = urlopen(req) #nosec
|
||||
except Exception as e:
|
||||
WaybackError(e)
|
||||
raise WaybackError(e)
|
||||
|
||||
data = json.loads(response.read().decode("UTF-8"))
|
||||
if not data["archived_snapshots"]:
|
||||
@@ -161,6 +161,6 @@ class Url():
|
||||
try:
|
||||
response = urlopen(req) #nosec
|
||||
except Exception as e:
|
||||
WaybackError(e)
|
||||
raise WaybackError(e)
|
||||
|
||||
return str(response.read()).count(",") # Most efficient method to count number of archives (yet)
|
||||
Reference in new issue
Block a user