From 820161dea57316e177f0bf05741fd510f53df5d3 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 16 Oct 2013 22:43:30 +0200 Subject: Avoid naked except clauses. --- debug_toolbar/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug_toolbar/views.py') diff --git a/debug_toolbar/views.py b/debug_toolbar/views.py index ab91cde..045e5cc 100644 --- a/debug_toolbar/views.py +++ b/debug_toolbar/views.py @@ -92,7 +92,7 @@ def sql_profile(request): cursor.execute("SELECT * FROM information_schema.profiling WHERE query_id=(SELECT query_id FROM information_schema.profiling ORDER BY query_id DESC LIMIT 1)") headers = [d[0] for d in cursor.description] result = cursor.fetchall() - except: + except Exception: result_error = "Profiling is either not available or not supported by your database." cursor.close() context = { -- cgit v1.2.3