Show error query and values

svn: r11377
This commit is contained in:
Doug Blank 2008-12-01 12:18:42 +00:00
parent c61ac47d57
commit 005bb624e5

View File

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