Update wrapper.py

This commit is contained in:
Akash
2020-07-19 20:28:34 +05:30
committed by GitHub
parent 4947fc9b90
commit 5c9ad8cfee

View File

@@ -77,8 +77,7 @@ class Url():
arch = re.search(r"X-Cache-Key:\shttps(.*)[A-Z]{2}", str(header)) arch = re.search(r"X-Cache-Key:\shttps(.*)[A-Z]{2}", str(header))
if arch: if arch:
return arch.group(1) return arch.group(1)
else: raise WaybackError("No archive url found in the reply headers. Visit https://github.com/akamhy/waybackpy for latest version of waybackpy.")
raise WaybackError("No archive url found in the reply headers. Visit https://github.com/akamhy/waybackpy for latest version of waybackpy.")
return "https://" + archive_url_parser(header) return "https://" + archive_url_parser(header)