[SQL-CVS] r4494 - SQLObject/trunk/sqlobject/postgres
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2011-12-14 17:12:35
|
Author: phd Date: Wed Dec 14 10:12:28 2011 New Revision: 4494 Log: Translate OperationalError in makeConnection. Modified: SQLObject/trunk/sqlobject/postgres/pgconnection.py Modified: SQLObject/trunk/sqlobject/postgres/pgconnection.py ============================================================================== --- SQLObject/trunk/sqlobject/postgres/pgconnection.py Wed Dec 14 09:38:42 2011 (r4493) +++ SQLObject/trunk/sqlobject/postgres/pgconnection.py Wed Dec 14 10:12:28 2011 (r4494) @@ -139,7 +139,7 @@ else: conn = self.module.connect(**self.dsn_dict) except self.module.OperationalError, e: - raise self.module.OperationalError("%s; used connection string %r" % (e, self.dsn)) + raise OperationalError("%s; used connection string %r" % (e, self.dsn)) if self.autoCommit: self._setAutoCommit(conn, 1) c = conn.cursor() if self.schema: |