diff options
| author | Stephane Wirtel <stephane@tinyerp.com> | 2008-12-18 10:13:42 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@tinyerp.com> | 2008-12-18 10:13:42 +0100 |
| commit | 3fb0723abd945d44df86f094f9b007fca23696d5 (patch) | |
| tree | 83115043aba39c76b292e0f8fc311bcdc01710e8 /bin/sql_db.py | |
| parent | b53c23bce0207ad5c77a33c6f1e5251f5a8efcd6 (diff) | |
[FIX]
bzr revid: stephane@tinyerp.com-20081218091342-ye0b53mnykogrzz9
Diffstat (limited to 'bin/sql_db.py')
| -rw-r--r-- | bin/sql_db.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py index 2c67b3187b7..9c74d0fae52 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -215,7 +215,8 @@ 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, str(e)) + 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) |
