mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 06:37:29 +00:00
Fix SauceNAO returning server errors for some images
This commit is contained in:
parent
3b26966e0a
commit
d0c72bc290
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ async def query_saucenao(url):
|
||||||
params={'url': url, 'api_key': u.config['saucenao_api'], 'output_type': 2},
|
params={'url': url, 'api_key': u.config['saucenao_api'], 'output_type': 2},
|
||||||
json=True)
|
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
|
raise exc.ImageError
|
||||||
|
|
||||||
match = content['results'][0]
|
match = content['results'][0]
|
||||||
|
|
Loading…
Reference in a new issue