From 525f11f600d7f764ef42028e8b0af0d31fe61257 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 17 Oct 2021 10:41:03 +0200 Subject: do not use base exception --- newspipe/web/views/icon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newspipe/web/views/icon.py b/newspipe/web/views/icon.py index 80a87448..99535c04 100644 --- a/newspipe/web/views/icon.py +++ b/newspipe/web/views/icon.py @@ -15,7 +15,7 @@ def icon(): icon = IconController().get(url=request.args["url"]) headers = {"Cache-Control": "max-age=86400", "Content-Type": icon.mimetype} return Response(base64.b64decode(icon.content), headers=headers) - except: + except Exception: headers = {"Cache-Control": "max-age=86400", "Content-Type": "image/gif"} return Response( base64.b64decode( -- cgit