summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crawler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawler.py b/crawler.py
index ab1f11d..20428b6 100644
--- a/crawler.py
+++ b/crawler.py
@@ -49,10 +49,9 @@ class Crawler(object):
aiohttp.errors.ClientResponseError,
aiohttp.errors.ClientOSError,
LookupError,
- json.decoder.JSONDecodeError):
+ json.decoder.JSONDecodeError) as err:
# API bug?
- logging.warning("API error, retrying")
- pass
+ logging.error("API error '%s', retrying", err)
await asyncio.sleep(10)
async def matches(self, params, region="na"):