Show error query and values
svn: r11377
This commit is contained in:
parent
c61ac47d57
commit
005bb624e5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user