From 6ebd93ea147df787a6c35a19b981201d68488450 Mon Sep 17 00:00:00 2001 From: Dylan Dizon Date: Mon, 26 Nov 2018 18:52:38 -0500 Subject: [PATCH] Add catching of alt invalid link error --- src/utils/scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/scraper.py b/src/utils/scraper.py index 581053e..a8e6ee2 100644 --- a/src/utils/scraper.py +++ b/src/utils/scraper.py @@ -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})