Skip to content

Commit 2d430ec

Browse files
author
Johannes Gijsbers
committed
Backport one change for Python 2.1 compatibility:
* don't use a string > 1 char with 'in' (untested on maint-0-8, as something seems to be wrong with running tests there)
1 parent 4efed5d commit 2d430ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/backends/back_postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def open_connection(self):
106106
try:
107107
self.load_dbschema()
108108
except psycopg.ProgrammingError, message:
109-
if '"schema" does not exist' not in str(message):
109+
if str(message).find('"schema" does not exist') == -1:
110110
raise
111111
self.rollback()
112112
self.init_dbschema()

0 commit comments

Comments
 (0)