diff options
author | Iuri de Silvio <iurisilvio@gmail.com> | 2016-05-13 21:20:54 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-05-13 21:23:17 -0400 |
commit | 8ecad78ba3473d97df8ed4f20f28ddf966ce0277 (patch) | |
tree | 3fffee25915a27819f79a9b5d59fa17a2cc0d10e /lib/sqlalchemy/dialects/postgresql/psycopg2.py | |
parent | 9e75d3ed8fa5d3f9ab084f9d5d46d8b971461cf9 (diff) | |
download | sqlalchemy-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.py | 1 |
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]: |