From c61ac47d57a0949c7974d4bd77057d7a5c36e2f1 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 1 Dec 2008 04:43:19 +0000 Subject: [PATCH] Fixed trim -> strip typo svn: r11375 --- src/plugins/Sql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/Sql.py b/src/plugins/Sql.py index 3a28e3db4..39d108ec9 100644 --- a/src/plugins/Sql.py +++ b/src/plugins/Sql.py @@ -57,12 +57,12 @@ class Database: self.cursor = self.db.cursor() def query(self, q, *args): - if q.trim().upper().startswith("DROP"): + if q.strip().upper().startswith("DROP"): try: self.cursor.execute(q, args) self.db.commit() except: - "no such table" + "no such table to drop: '%s'" % q else: self.cursor.execute(q, args) self.db.commit()