Skip to content

Commit 99f7cb4

Browse files
committed
Translate OperationalError in makeConnection.
git-svn-id: http://svn.colorstudy.com/SQLObject/trunk@4494 95a46c32-92d2-0310-94a5-8d71aeb3d4b3
1 parent 2cf58e4 commit 99f7cb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlobject/postgres/pgconnection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def makeConnection(self):
139139
else:
140140
conn = self.module.connect(**self.dsn_dict)
141141
except self.module.OperationalError, e:
142-
raise self.module.OperationalError("%s; used connection string %r" % (e, self.dsn))
142+
raise OperationalError("%s; used connection string %r" % (e, self.dsn))
143143
if self.autoCommit: self._setAutoCommit(conn, 1)
144144
c = conn.cursor()
145145
if self.schema:

0 commit comments

Comments
 (0)