]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added additional error message to is_disconnect() fixes sqlalchemy/sqlalchemy#4903 4904/head
authorlukens <lukens@me.com>
Thu, 10 Oct 2019 13:41:52 +0000 (14:41 +0100)
committerLuke Noel-Storr <luke.noel-storr@wbs.ac.uk>
Thu, 10 Oct 2019 13:54:07 +0000 (14:54 +0100)
lib/sqlalchemy/dialects/firebird/kinterbasdb.py

index 9880ee89f36ff93befdbef002ff1a77ec8e87649..3312aeeaeafb05555ff5444c0aefd88682a1baa6 100644 (file)
@@ -188,7 +188,8 @@ class FBDialect_kinterbasdb(FBDialect):
         ):
             msg = str(e)
             return (
-                "Unable to complete network request to host" in msg
+                "Error writing data to the connection" in msg
+                or "Unable to complete network request to host" in msg
                 or "Invalid connection state" in msg
                 or "Invalid cursor state" in msg
                 or "connection shutdown" in msg