summaryrefslogtreecommitdiff
path: root/crawler.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-07 21:41:50 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-07 21:41:50 +0100
commit4c8aa94b4201406ca47073da9cc9d3524ab117bb (patch)
treedcd5f7dab6e389fbef6f0bb6448bc714a8824700 /crawler.py
parent45f4a6f741ad67c967d9cf03b8d62ff8789ac002 (diff)
downloadapigrabber-4c8aa94b4201406ca47073da9cc9d3524ab117bb.tar.gz
apigrabber-4c8aa94b4201406ca47073da9cc9d3524ab117bb.zip
log API errors
Diffstat (limited to 'crawler.py')
-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"):