From 005bb624e58793fb16e24424f00bed84b3b27219 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 1 Dec 2008 12:18:42 +0000 Subject: [PATCH] Show error query and values svn: r11377 --- src/plugins/Sql.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/plugins/Sql.py b/src/plugins/Sql.py index 39d108ec9..71e63a2b9 100644 --- a/src/plugins/Sql.py +++ b/src/plugins/Sql.py @@ -62,10 +62,15 @@ class Database: self.cursor.execute(q, args) self.db.commit() except: - "no such table to drop: '%s'" % q + "WARN: no such table to drop: '%s'" % q else: - self.cursor.execute(q, args) - self.db.commit() + try: + self.cursor.execute(q, args) + self.db.commit() + except: + print "ERROR: query :", q + print "ERROR: values:", args + raise return self.cursor.fetchall() def close(self):