diff --git a/pikaur/pikspect.py b/pikaur/pikspect.py index 6012f64fc..f2160c260 100644 --- a/pikaur/pikspect.py +++ b/pikaur/pikspect.py @@ -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()