For unknown reasons a space character got into the error message
being tested in #6099. The fix is entirely non working in 1.4.4.
Fixes: #6099
Change-Id: Ib2929be59d62eb2446fc8f040293c9228df7a531
--- /dev/null
+.. change::
+ :tags: bug, postgresql
+ :tickets: 6099
+
+ Fixed typo in the fix for :ticket:`6099` released in 1.4.4 that completely
+ prevented it from working correctly, i.e. the error message did not match
+ what was actually emitted by pg8000.
return ([], opts)
def is_disconnect(self, e, connection, cursor):
- if isinstance(
- e, self.dbapi.InterfaceError
- ) and "network error" in str(e):
+ if isinstance(e, self.dbapi.InterfaceError) and "network error" in str(
+ e
+ ):
# new as of pg8000 1.19.0 for broken connections
return True