[common] fix NameError in Extractor.request()

… when accessing 'code' after an requests exception was raised.

Caused by the changes in 566472f080
This commit is contained in:
Mike Fährmann
2024-04-18 15:42:53 +02:00
parent 566472f080
commit a5071c9ca0

View File

@@ -171,6 +171,7 @@ class Extractor():
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ContentDecodingError) as exc:
msg = exc
code = 0
except (requests.exceptions.RequestException) as exc:
raise exception.HttpError(exc)
else: