From: antti_haapala Date: Fri, 11 Apr 2014 19:38:07 +0000 (+0000) Subject: added an SSL related connection error X-Git-Tag: rel_0_9_5~80^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e56c9386d13614da388da4c2d41be10598d5dd4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git added an SSL related connection error --- diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index ac17706252..714b9618c8 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]: