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):