FIX : replaced full_url with endpoint (not using urlib)
This commit is contained in:
parent
0280fca189
commit
c919a6a605
@ -53,7 +53,7 @@ def _get_response(endpoint, params=None, headers=None):
|
|||||||
try:
|
try:
|
||||||
response = requests.get(endpoint, params=params, headers=headers) # nosec
|
response = requests.get(endpoint, params=params, headers=headers) # nosec
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exc = WaybackError("Error while retrieving %s" % req.full_url)
|
exc = WaybackError("Error while retrieving %s" % endpoint)
|
||||||
exc.__cause__ = e
|
exc.__cause__ = e
|
||||||
raise exc
|
raise exc
|
||||||
return response
|
return response
|
||||||
|
Loading…
Reference in New Issue
Block a user