]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
adding back in potential artifact to be safe
authorZeke Brechtel <5767468+zkl2@users.noreply.github.com>
Sat, 25 Sep 2021 15:19:06 +0000 (09:19 -0600)
committerZeke Brechtel <5767468+zkl2@users.noreply.github.com>
Sat, 25 Sep 2021 15:19:06 +0000 (09:19 -0600)
lib/sqlalchemy/dialects/postgresql/psycopg2.py
test/dialect/postgresql/test_dialect.py

index e42ad7f302d7a4ac88998e126a167af6cf891566..a71bdf7606593919b29a9a8d350b9a1f2ad93f86 100644 (file)
@@ -1041,6 +1041,9 @@ class PGDialect_psycopg2(PGDialect):
                 # psycopg2/cursor.h
                 "connection already closed",
                 "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",
                 # these can occur in newer SSL
                 "connection has been closed unexpectedly",
                 "SSL error: decryption failed or bad record mac",
index 9ee00198cad096364d0e841ff7f085647d3890a8..c0eb4410cf972fd3dd92312788df304977ab8e0d 100644 (file)
@@ -276,6 +276,9 @@ $$ LANGUAGE plpgsql;"""
             # psycopg2/cursor.h
             "connection already closed",
             "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",
             # these can occur in newer SSL
             "connection has been closed unexpectedly",
             "SSL error: decryption failed or bad record mac",