import, code, exception cleanups

This commit is contained in:
Eric Blade
2009-09-15 21:07:31 -05:00
parent e4772dcb74
commit 2790a623af
2 changed files with 77 additions and 39 deletions
+2 -2
View File
@@ -49,14 +49,14 @@ log = logging.getLogger('importer')
# database interface modules
try:
import MySQLdb
except:
except ImportError:
log.debug("Import database module: MySQLdb not found")
else:
mysqlLibFound = True
try:
import psycopg2
except:
except ImportError:
log.debug("Import database module: psycopg2 not found")
else:
import psycopg2.extensions