diff --git a/src/firebird/driver/core.py b/src/firebird/driver/core.py index 9d5375e..a5154ee 100644 --- a/src/firebird/driver/core.py +++ b/src/firebird/driver/core.py @@ -1799,7 +1799,7 @@ def __del__(self): warn("Connection disposed without prior close()", ResourceWarning) self._close() self._close_internals() - with contextlib.suppress: + with contextlib.suppress(DatabaseError): self._att.detach() def __enter__(self) -> Self: return self