--- a/pgtools/pgmanager.py Thu May 26 18:09:05 2011 +0200
+++ b/pgtools/pgmanager.py Mon Jul 18 17:39:37 2011 +0200
@@ -151,7 +151,7 @@
def create_conn(self, name='default', isolation_level=None, dsn=None, **kw):
'''Create named connection.'''
if name in self.conn_known:
- raise PgManagerError('Connection name "%s" already registered.', name)
+ raise PgManagerError('Connection name "%s" already registered.' % name)
if dsn is None:
dsn = ' '.join([x[0]+'='+str(x[1]) for x in kw.items()])
@@ -179,7 +179,7 @@
'''
if not name in self.conn_known:
- raise PgManagerError('Connection name "%s" not registered.', name)
+ raise PgManagerError('Connection name "%s" not registered.' % name)
self.close_conn(name)
@@ -191,7 +191,7 @@
self.lock.acquire()
try:
if not name in self.conn_known:
- raise PgManagerError("Connection name '%s' not registered.", name)
+ raise PgManagerError("Connection name '%s' not registered." % name)
conn = None
while len(self.conn_pool[name]) and conn is None:
@@ -222,7 +222,7 @@
self.lock.acquire()
try:
if not name in self.conn_known:
- raise PgManagerError("Connection name '%s' not registered.", name)
+ raise PgManagerError("Connection name '%s' not registered." % name)
if len(self.conn_pool[name]) >= self.conn_known[name].keep_open:
conn.close()