diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-07 21:41:50 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-07 21:41:50 +0100 |
| commit | 4c8aa94b4201406ca47073da9cc9d3524ab117bb (patch) | |
| tree | dcd5f7dab6e389fbef6f0bb6448bc714a8824700 /crawler.py | |
| parent | 45f4a6f741ad67c967d9cf03b8d62ff8789ac002 (diff) | |
| download | apigrabber-4c8aa94b4201406ca47073da9cc9d3524ab117bb.tar.gz apigrabber-4c8aa94b4201406ca47073da9cc9d3524ab117bb.zip | |
log API errors
Diffstat (limited to 'crawler.py')
| -rw-r--r-- | crawler.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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"): |
