From 1d263c81393ab780c5d1a82914ce4250060c63cf Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sun, 11 Jul 2010 18:36:45 +0100 Subject: [PATCH] fix call to db.connected() --- pyfpdb/fpdb.pyw | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/fpdb.pyw b/pyfpdb/fpdb.pyw index 4554827c..e4d48cf1 100755 --- a/pyfpdb/fpdb.pyw +++ b/pyfpdb/fpdb.pyw @@ -66,6 +66,7 @@ cl_options = string.join(sys.argv[1:]) (options, argv) = Options.fpdb_options() import logging, logging.config +log = logging.getLogger("fpdb") try: import pygtk @@ -854,9 +855,10 @@ class fpdb: print "Quitting normally" # TODO: check if current settings differ from profile, if so offer to save or abort try: - if self.db is not None and self.db.connected: + if self.db is not None and self.db.connected(): self.db.disconnect() except _mysql_exceptions.OperationalError: # oh, damn, we're already disconnected + log.info("fpdb.quit disconnect error being ignored: "+str(sys.exc_info())) pass self.statusIcon.set_visible(False)