1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-23 22:27:27 +00:00

Add catching of alt invalid link error

This commit is contained in:
Dylan Dizon 2018-11-26 18:52:38 -05:00
parent 5f62c91c0f
commit 6ebd93ea14

View file

@ -16,7 +16,7 @@ async def get_post(url):
if filesize > 8192 * 1024:
raise exc.SizeError(size(filesize, system=alternative))
except ValueError:
except (ValueError, KeyError):
raise exc.MissingArgument
content = await u.fetch('http://iqdb.harry.lu', params={'url': url})