Skip to content

Commit

Permalink
fix(log): Always call self.close() on __exit__
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch authored and rumpelsepp committed Jan 14, 2025
1 parent ac933a4 commit 172d8f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gallia/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 172d8f9

Please sign in to comment.