From a47ff7fb9be821870197ef36c3b6e1bcf14c1890 Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 20 Jun 2009 00:58:41 +0800 Subject: [PATCH] Fix case sensitivity in test for Hands table before dropping --- pyfpdb/fpdb_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/fpdb_db.py b/pyfpdb/fpdb_db.py index 7c1fc800..86776b82 100644 --- a/pyfpdb/fpdb_db.py +++ b/pyfpdb/fpdb_db.py @@ -578,7 +578,7 @@ class fpdb_db: self.cursor.execute( "lock tables Hands write" ) except: # Table 'fpdb.hands' doesn't exist - if str(sys.exc_value).find(".hands' doesn't exist") >= 0: + if str(sys.exc_value).find(".Hands' doesn't exist") >= 0: return(2) print "Error! failed to obtain global lock. Close all programs accessing " \ + "database (including fpdb) and try again (%s)." \