From 45f4a6f741ad67c967d9cf03b8d62ff8789ac002 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 7 Mar 2017 18:58:03 +0100 Subject: fix 'unknown encoding' bug --- crawler.py | 1 + 1 file changed, 1 insertion(+) (limited to 'crawler.py') diff --git a/crawler.py b/crawler.py index 7ef83d7..ab1f11d 100644 --- a/crawler.py +++ b/crawler.py @@ -48,6 +48,7 @@ class Crawler(object): aiohttp.errors.ServerDisconnectedError, aiohttp.errors.ClientResponseError, aiohttp.errors.ClientOSError, + LookupError, json.decoder.JSONDecodeError): # API bug? logging.warning("API error, retrying") -- cgit v1.3.1