Python 2 support
This commit is contained in:
parent
9860527d96
commit
f2112c73f6
@ -56,11 +56,11 @@ class Url():
|
||||
|
||||
def handle_HTTPError(self, e):
|
||||
if e.code >= 500:
|
||||
raise WaybackError(e) from None
|
||||
raise WaybackError(e)
|
||||
if e.code == 429:
|
||||
raise WaybackError(e) from None
|
||||
raise WaybackError(e)
|
||||
if e.code == 404:
|
||||
raise HTTPError(e) from None
|
||||
raise HTTPError(e)
|
||||
|
||||
def save(self):
|
||||
request_url = ("https://web.archive.org/save/" + self.clean_url())
|
||||
|
Loading…
x
Reference in New Issue
Block a user