summaryrefslogtreecommitdiff
path: root/crawler.py
diff options
context:
space:
mode:
Diffstat (limited to 'crawler.py')
-rw-r--r--crawler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawler.py b/crawler.py
index f988375..7ceda92 100644
--- a/crawler.py
+++ b/crawler.py
@@ -38,7 +38,7 @@ class Crawler(object):
params=params) as response:
assert response.status == 200
return await response.json()
- except aiohttp.errors.ClientResponseError:
+ except (aiohttp.errors.ClientResponseError, RuntimeError):
logging.warning("error connecting to API, retrying")
return await self._req(session, path, params)