From 2efbed39b4cddb78eca02ecf908219e28be7d824 Mon Sep 17 00:00:00 2001 From: "F.D.Castel" Date: Sun, 25 Jan 2026 09:32:58 -0300 Subject: [PATCH] Specify exception type in contextlib.suppress(). Fix #63. --- src/firebird/driver/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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