diff options
| author | Christophe Simonis <christophe@cobalt> | 2008-12-18 10:07:01 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@cobalt> | 2008-12-18 10:07:01 +0100 |
| commit | b53c23bce0207ad5c77a33c6f1e5251f5a8efcd6 (patch) | |
| tree | 513fa5586bab5a4cdc19ffe6b0859a1f697c3875 /bin/sql_db.py | |
| parent | 8381cdebc281e6951825e84cc11b2d24f37f4683 (diff) | |
[FIX] fix python2.4 compatibility
bzr revid: christophe@cobalt-20081218090701-n7acd0nmsilygkjy
Diffstat (limited to 'bin/sql_db.py')
| -rw-r--r-- | bin/sql_db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py index 3c348bcf010..2c67b3187b7 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -215,7 +215,7 @@ class PoolManager(object): logger.notifyChannel('dbpool', netsvc.LOG_INFO, 'Connecting to %s' % (db_name,)) PoolManager._pools[db_name] = ConnectionPool(ThreadedConnectionPool(1, PoolManager.maxconn, PoolManager.dsn(db_name)), db_name) except Exception, e: - logger.notifyChannel('dbpool', netsvc.LOG_ERROR, 'Unable to connect to %s: %s' % (db_name, e.message)) + logger.notifyChannel('dbpool', netsvc.LOG_ERROR, 'Unable to connect to %s: %s' % (db_name, str(e)) raise return PoolManager._pools[db_name] get = staticmethod(get) |
