]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added an SSL related connection error
authorantti_haapala <antti@haapala.name>
Fri, 11 Apr 2014 19:38:07 +0000 (19:38 +0000)
committerantti_haapala <antti@haapala.name>
Fri, 11 Apr 2014 19:38:07 +0000 (19:38 +0000)
lib/sqlalchemy/dialects/postgresql/psycopg2.py

index ac17706252b229594263ed759d05c9cf3efed464..714b9618c849f4e16d9d91e910247962642abfc1 100644 (file)
@@ -505,7 +505,9 @@ class PGDialect_psycopg2(PGDialect):
                 'cursor already closed',
                 # not sure where this path is originally from, it may
                 # be obsolete.   It really says "losed", not "closed".
-                'losed the connection unexpectedly'
+                'losed the connection unexpectedly',
+                # this can occur in newer SSL
+                'connection has been closed unexpectedly'
             ]:
                 idx = str_e.find(msg)
                 if idx >= 0 and '"' not in str_e[:idx]: