From 8514bd66680c4e290560f5aabbd06b0fd0e25174 Mon Sep 17 00:00:00 2001 From: mo8it Date: Sat, 4 Nov 2023 13:29:57 +0100 Subject: [PATCH] Non bare exception, whatever --- advlabdb/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advlabdb/actions.py b/advlabdb/actions.py index 9489a79..6780900 100644 --- a/advlabdb/actions.py +++ b/advlabdb/actions.py @@ -31,7 +31,7 @@ def backup(backup_prefix): flash(f"Created a database backup at the path {dest}", "success") else: flash("Failed to create a database backup!", "danger") - except: + except Exception: flash("Failed to create a database backup! Make sure that `sqlite3` is installed on your system!", "danger")