FIX : replaced full_url with endpoint (not using urlib)

This commit is contained in:
Akash Mahanty 2020-12-13 15:22:56 +05:30
parent 0280fca189
commit c919a6a605

View File

@ -53,7 +53,7 @@ def _get_response(endpoint, params=None, headers=None):
try:
response = requests.get(endpoint, params=params, headers=headers) # nosec
except Exception as e:
exc = WaybackError("Error while retrieving %s" % req.full_url)
exc = WaybackError("Error while retrieving %s" % endpoint)
exc.__cause__ = e
raise exc
return response