]> 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)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Apr 2014 19:43:23 +0000 (15:43 -0400)
lib/sqlalchemy/dialects/postgresql/psycopg2.py

index b901bcc56c1496213ef57d429cd78be6b1c83926..268a89724b3ee174668d175479fcd640888ace41 100644 (file)
@@ -496,7 +496,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]: