mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 06:37:29 +00:00
Add catching of alt invalid link error
This commit is contained in:
parent
5f62c91c0f
commit
6ebd93ea14
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ async def get_post(url):
|
||||||
if filesize > 8192 * 1024:
|
if filesize > 8192 * 1024:
|
||||||
raise exc.SizeError(size(filesize, system=alternative))
|
raise exc.SizeError(size(filesize, system=alternative))
|
||||||
|
|
||||||
except ValueError:
|
except (ValueError, KeyError):
|
||||||
raise exc.MissingArgument
|
raise exc.MissingArgument
|
||||||
|
|
||||||
content = await u.fetch('http://iqdb.harry.lu', params={'url': url})
|
content = await u.fetch('http://iqdb.harry.lu', params={'url': url})
|
||||||
|
|
Loading…
Reference in a new issue