Always cast url to string, avoid passing waybackpy objects to _get_response

This commit is contained in:
Akash Mahanty 2021-01-05 19:46:17 +05:30 committed by GitHub
parent 93b52bd0fe
commit 15ef5816db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,7 +318,7 @@ class Url:
user_agent = self.user_agent user_agent = self.user_agent
headers = {"User-Agent": str(user_agent)} headers = {"User-Agent": str(user_agent)}
response = _get_response(url, params=None, headers=headers) response = _get_response(str(url), params=None, headers=headers)
if not encoding: if not encoding:
try: try: