summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/psycopg2.py
diff options
context:
space:
mode:
authorIuri de Silvio <iurisilvio@gmail.com>2016-05-13 21:20:54 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2016-05-13 21:23:17 -0400
commit8ecad78ba3473d97df8ed4f20f28ddf966ce0277 (patch)
tree3fffee25915a27819f79a9b5d59fa17a2cc0d10e /lib/sqlalchemy/dialects/postgresql/psycopg2.py
parent9e75d3ed8fa5d3f9ab084f9d5d46d8b971461cf9 (diff)
downloadsqlalchemy-8ecad78ba3473d97df8ed4f20f28ddf966ce0277.tar.gz
Handle `SSL error: decryption failed or bad record mac`
This is another psycopg2 error message representing an unusable connection. Fixes #3715 Change-Id: Ida6e212963e9c7336bf2944e7ef928619ac3a0e7 Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/85
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
index fe245b21d..417b7654d 100644
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
@@ -718,6 +718,7 @@ class PGDialect_psycopg2(PGDialect):
'connection has been closed unexpectedly',
'SSL SYSCALL error: Bad file descriptor',
'SSL SYSCALL error: EOF detected',
+ 'SSL error: decryption failed or bad record mac',
]:
idx = str_e.find(msg)
if idx >= 0 and '"' not in str_e[:idx]: