Skip to content

Commit

Permalink
fix(pikspect: nested_terminal): compare signal with None
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Sep 3, 2024
1 parent 4237318 commit 43b6dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pikaur/pikspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def __enter__(self) -> os.terminal_size:
return real_term_geometry

def __exit__(self, *exc_details: object) -> None:
if self._original_signal:
if self._original_signal is not None:
signal.signal(signal.SIGWINCH, self._original_signal)
self.tty_wrapper.__exit__(*exc_details)
TTYRestore.restore()
Expand Down

0 comments on commit 43b6dd7

Please sign in to comment.