From 873bd1a73ea8357d70f9fe4ece87f045a4e656cc Mon Sep 17 00:00:00 2001 From: Bui Date: Tue, 17 Mar 2020 01:27:54 +0000 Subject: [PATCH] hashexception --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 2e5a7f6..122ab2a 100644 --- a/app.py +++ b/app.py @@ -53,7 +53,7 @@ def generate_hash(id, form): for url in urls: resp = requests.get(url) if resp.status_code != 200: - raise Exception('Invalid response from %s (status code %s)' % (resp.url, resp.status_code)) + raise HashException('Invalid response from %s (status code %s)' % (resp.url, resp.status_code)) md5.update(resp.content) return base64.b64encode(md5.digest())[:-2].decode('utf-8')