Fixed issue where the asyncpg driver could throw an insufficiently-handled
exception ``InternalClientError`` under some circumstances, leading to
connections not being properly marked as invalidated.
Fixes: #13241
References: https://github.com/MagicStack/asyncpg/issues/1069
Change-Id: Iaaf551b3d7b062cce62e13b441161583a484615f
--- /dev/null
+.. change::
+ :tags: bug, postgresql
+ :tickets: 13241
+
+ Fixed issue where the asyncpg driver could throw an insufficiently-handled
+ exception ``InternalClientError`` under some circumstances, leading to
+ connections not being properly marked as invalidated.
+
+
class InternalServerError(InternalError):
pass
+ class InternalClientError(InternalError):
+ pass
+
class InvalidCachedStatementError(NotSupportedError):
def __init__(self, message, error=None):
super().__init__(
asyncpg.exceptions.UniqueViolationError: self.UniqueViolationError,
asyncpg.exceptions.CheckViolationError: self.CheckViolationError,
asyncpg.exceptions.ExclusionViolationError: self.ExclusionViolationError, # noqa: E501
+ asyncpg.exceptions.InternalClientError: self.InternalClientError,
}
def Binary(self, value):