Fixed trim -> strip typo
svn: r11375
This commit is contained in:
parent
ff66065dde
commit
c61ac47d57
@ -57,12 +57,12 @@ class Database:
|
|||||||
self.cursor = self.db.cursor()
|
self.cursor = self.db.cursor()
|
||||||
|
|
||||||
def query(self, q, *args):
|
def query(self, q, *args):
|
||||||
if q.trim().upper().startswith("DROP"):
|
if q.strip().upper().startswith("DROP"):
|
||||||
try:
|
try:
|
||||||
self.cursor.execute(q, args)
|
self.cursor.execute(q, args)
|
||||||
self.db.commit()
|
self.db.commit()
|
||||||
except:
|
except:
|
||||||
"no such table"
|
"no such table to drop: '%s'" % q
|
||||||
else:
|
else:
|
||||||
self.cursor.execute(q, args)
|
self.cursor.execute(q, args)
|
||||||
self.db.commit()
|
self.db.commit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user