Don't use result['data']['source']
This commit is contained in:
parent
5f3172baf1
commit
5f3f92a7fc
|
@ -84,10 +84,6 @@ async def saucenao(client, message):
|
||||||
to_image = True
|
to_image = True
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if result['data'].get('source'):
|
|
||||||
if await download_file(result['data']['source'], filename):
|
|
||||||
to_image = True
|
|
||||||
if not to_image:
|
|
||||||
await download_file(result['header']['thumbnail'], filename)
|
await download_file(result['header']['thumbnail'], filename)
|
||||||
to_image = True
|
to_image = True
|
||||||
atext += '\n\n'
|
atext += '\n\n'
|
||||||
|
|
Loading…
Reference in New Issue