From 66af76a107a22d9119edc8edcacc1e4ef66dc50d Mon Sep 17 00:00:00 2001 From: Zeke Brechtel <5767468+zkl2@users.noreply.github.com> Date: Sat, 25 Sep 2021 09:19:06 -0600 Subject: [PATCH] adding back in potential artifact to be safe --- lib/sqlalchemy/dialects/postgresql/psycopg2.py | 3 +++ test/dialect/postgresql/test_dialect.py | 3 +++ 2 files changed, 6 insertions(+) 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", -- 2.47.3