From: Zeke Brechtel <5767468+zkl2@users.noreply.github.com> Date: Sat, 25 Sep 2021 15:19:06 +0000 (-0600) Subject: adding back in potential artifact to be safe X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66af76a107a22d9119edc8edcacc1e4ef66dc50d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git adding back in potential artifact to be safe --- diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index e42ad7f302..a71bdf7606 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -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", diff --git a/test/dialect/postgresql/test_dialect.py b/test/dialect/postgresql/test_dialect.py index 9ee00198ca..c0eb4410cf 100644 --- a/test/dialect/postgresql/test_dialect.py +++ b/test/dialect/postgresql/test_dialect.py @@ -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",