From 7bd7b5b053af4d4f31bf9121aa07ef39b2395f4d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 27 Oct 2009 11:01:45 -0400 Subject: [PATCH] add todo to remind me --- pyfpdb/fpdb_db.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyfpdb/fpdb_db.py b/pyfpdb/fpdb_db.py index 986c747f..da0bbbe7 100644 --- a/pyfpdb/fpdb_db.py +++ b/pyfpdb/fpdb_db.py @@ -77,10 +77,11 @@ class fpdb_db: import MySQLdb if use_pool: MySQLdb = pool.manage(MySQLdb, pool_size=5) - try: - self.db = MySQLdb.connect(host = host, user = user, passwd = password, db = database, use_unicode=True) - except: - raise FpdbMySQLFailedError("MySQL connection failed") +# try: + self.db = MySQLdb.connect(host = host, user = user, passwd = password, db = database, use_unicode=True) + #TODO: Add port option +# except: +# raise FpdbMySQLFailedError("MySQL connection failed") elif backend==fpdb_db.PGSQL: import psycopg2 import psycopg2.extensions