diff options
author | Mike Bayer <classic@zzzcomputing.com> | 2014-04-11 15:39:34 -0400 |
---|---|---|
committer | Mike Bayer <classic@zzzcomputing.com> | 2014-04-11 15:39:34 -0400 |
commit | 992928fb449b6ca4004cc505fedb26cd69c57643 (patch) | |
tree | 0836077e499c9460ccf716172ae3cfc12180f547 | |
parent | a48217b1357521696f03e90b6546a91ca310245a (diff) | |
parent | 4e56c9386d13614da388da4c2d41be10598d5dd4 (diff) | |
download | sqlalchemy-992928fb449b6ca4004cc505fedb26cd69c57643.tar.gz |
Merged in antti_haapala/sqlalchemy/antti_haapala/added-an-ssl-related-connection-error-1397245079299 (pull request #13)
added an SSL related connection error
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/psycopg2.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index ac1770625..714b9618c 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -505,7 +505,9 @@ class PGDialect_psycopg2(PGDialect): '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' + 'losed the connection unexpectedly', + # this can occur in newer SSL + 'connection has been closed unexpectedly' ]: idx = str_e.find(msg) if idx >= 0 and '"' not in str_e[:idx]: |