From c0077c3dbf16967714b4d953d6161fa5434fe83d Mon Sep 17 00:00:00 2001 From: "Jarisch, Ferdinand" Date: Tue, 14 Jan 2025 13:44:05 +0100 Subject: [PATCH] fix(log): Always call self.close() on __exit__ --- src/gallia/log.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallia/log.py b/src/gallia/log.py index fdcbdf96f..c54505adf 100644 --- a/src/gallia/log.py +++ b/src/gallia/log.py @@ -660,8 +660,7 @@ def __exit__( exc_value: BaseException | None, tb: TracebackType | None, ) -> None: - if exc_type is not None: - self.close() + self.close() @unique