aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2021-10-17 10:41:03 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2021-10-17 10:41:03 +0200
commit525f11f600d7f764ef42028e8b0af0d31fe61257 (patch)
tree9c3e6fe91c3b181681fc905602b2de6cb1cdcebf
parentremoved useless imports (diff)
downloadnewspipe-525f11f600d7f764ef42028e8b0af0d31fe61257.tar.gz
newspipe-525f11f600d7f764ef42028e8b0af0d31fe61257.tar.bz2
newspipe-525f11f600d7f764ef42028e8b0af0d31fe61257.zip
do not use base exception
-rw-r--r--newspipe/web/views/icon.py2
1 files changed, 1 insertions, 1 deletions
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(
bgstack15