[odrs-web/oscp] Widening the exception class for debugging purposes



commit 8cf6e4a70aa5a5e05d1ea7eb1b69eb8429bcc3ab
Author: Andrea Veri <averi redhat com>
Date:   Tue Nov 13 15:24:44 2018 +0100

    Widening the exception class for debugging purposes

 app_data/app/views_admin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app_data/app/views_admin.py b/app_data/app/views_admin.py
index 956e58a..f2a6672 100644
--- a/app_data/app/views_admin.py
+++ b/app_data/app/views_admin.py
@@ -411,7 +411,7 @@ def admin_show_unmoderated():
     try:
         db = get_db()
         reviews_all = db.reviews.get_all()
-    except CursorError as e:
+    except Exception as e:
         return _error_internal(str(e))
     user_hash = _get_hash_for_user(current_user)
     if not user_hash:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]