summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crawler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawler.py b/crawler.py
index 88bc93e..7ef83d7 100644
--- a/crawler.py
+++ b/crawler.py
@@ -1,5 +1,6 @@
#!/usr/bin/python
+import json
import asyncio
import logging
import aiohttp
@@ -46,7 +47,8 @@ class Crawler(object):
except (aiohttp.errors.ContentEncodingError,
aiohttp.errors.ServerDisconnectedError,
aiohttp.errors.ClientResponseError,
- aiohttp.errors.ClientOSError):
+ aiohttp.errors.ClientOSError,
+ json.decoder.JSONDecodeError):
# API bug?
logging.warning("API error, retrying")
pass