From d0c72bc290077bef23488dd88f69058c6c3fd073 Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 1 Nov 2019 19:18:25 -0400 Subject: [PATCH] Fix SauceNAO returning server errors for some images --- src/utils/scraper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/scraper.py b/src/utils/scraper.py index 8680d31..35ff235 100644 --- a/src/utils/scraper.py +++ b/src/utils/scraper.py @@ -83,7 +83,9 @@ async def query_saucenao(url): params={'url': url, 'api_key': u.config['saucenao_api'], 'output_type': 2}, json=True) - if content['header'].get('message', '') == 'Access to specified file was denied... ;_;': + if content['header'].get('message', '') in ( + 'Access to specified file was denied... ;_;', + 'Problem with remote server...'): raise exc.ImageError match = content['results'][0]