--- ZSQLExtend/importFMPXML.py 2008/03/06 12:10:55 1.24 +++ ZSQLExtend/importFMPXML.py 2008/07/02 11:58:45 1.25 @@ -146,7 +146,7 @@ class xml_handler: # connect database self.dbCon = psycopg.connect(options.dsn) - logging.debug("DB encoding: %s"%self.dbCon.encoding) + logging.debug("DB encoding: %s"%getattr(self.dbCon, 'encoding', 'UNKNOWN')) self.db = self.dbCon.cursor() assert self.db, "AIIEE no db cursor for %s!!"%options.dsn