summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-02-26 19:49:19 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-02-26 20:06:06 +0100
commitb4cbe522fae1e379466b64ac8e3a06c3e45ce26a (patch)
tree56b7770227e8dccc89db00e21e3b45eaaab50fcc
parent90ee943705e6ed373b778929c0bab94c6e34f674 (diff)
downloadapigrabber-b4cbe522fae1e379466b64ac8e3a06c3e45ce26a.tar.gz
apigrabber-b4cbe522fae1e379466b64ac8e3a06c3e45ce26a.zip
catch more API bugs
-rw-r--r--crawler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawler.py b/crawler.py
index 44396ae..5db8489 100644
--- a/crawler.py
+++ b/crawler.py
@@ -43,7 +43,10 @@ class Crawler(object):
logging.warning("rate limited, retrying")
else:
return await response.json()
- except (aiohttp.errors.ContentEncodingError):
+ except (aiohttp.errors.ContentEncodingError,
+ aiohttp.errors.ServerDisconnectedError,
+ aiohttp.errors.ClientResponseError,
+ aiohttp.errors.ClientOSError):
# API bug?
pass
await asyncio.sleep(10)