]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 18 Aug 2023 01:49:57 +0000 (03:49 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 18 Aug 2023 01:49:57 +0000 (03:49 +0200)
- some websites are so badly configured that they return a broken gzip body
- let's handle that exception here, too

fba/http/network.py

index 2b1a9bbac8a2b3ee29c6d5db5e59a244dbd68c50..e7819f6ddae49a6eee45578fdc4dcc781863bbb6 100644 (file)
@@ -47,6 +47,7 @@ api_headers = {
 exceptions = (
     requests.exceptions.ChunkedEncodingError,
     requests.exceptions.ConnectionError,
+    requests.exceptions.ContentDecodingError,
     requests.exceptions.InvalidSchema,
     requests.exceptions.InvalidURL,
     requests.exceptions.Timeout,