diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2021-10-17 10:41:03 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2021-10-17 10:41:03 +0200 |
commit | 525f11f600d7f764ef42028e8b0af0d31fe61257 (patch) | |
tree | 9c3e6fe91c3b181681fc905602b2de6cb1cdcebf | |
parent | removed useless imports (diff) | |
download | newspipe-525f11f600d7f764ef42028e8b0af0d31fe61257.tar.gz newspipe-525f11f600d7f764ef42028e8b0af0d31fe61257.tar.bz2 newspipe-525f11f600d7f764ef42028e8b0af0d31fe61257.zip |
do not use base exception
-rw-r--r-- | newspipe/web/views/icon.py | 2 |
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( |