[SQL-CVS] r217 - in branches/SQLObject: . 0.6/sqlobject/postgres
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2004-09-22 04:36:47
|
Author: ianb Date: 2004-09-21 20:24:44 -0400 (Tue, 21 Sep 2004) New Revision: 217 Added: branches/SQLObject/0.6/ Modified: branches/SQLObject/0.6/sqlobject/postgres/pgconnection.py Log: Created branch for 0.6 Copied: branches/SQLObject/0.6 (from rev 215, trunk/SQLObject) Modified: branches/SQLObject/0.6/sqlobject/postgres/pgconnection.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/SQLObject/sqlobject/postgres/pgconnection.py 2004-09-03 17:05:0= 0 UTC (rev 215) +++ branches/SQLObject/0.6/sqlobject/postgres/pgconnection.py 2004-09-22 = 00:24:44 UTC (rev 217) @@ -49,7 +49,10 @@ conn.autocommit(auto) =20 def makeConnection(self): - conn =3D self.pgmodule.connect(self.dsn) + try: + conn =3D self.pgmodule.connect(self.dsn) + except self.pgmodule.OperationalError, e: + raise self.pgmodule.OperationalError("%s; used connection st= ring %r" % (e, self.dsn)) if self.autoCommit: conn.autocommit(1) return conn |