10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 881f988 commit 1e22be9Copy full SHA for 1e22be9
prompt_toolkit/shortcuts/progress_bar/base.py
@@ -147,7 +147,9 @@ def __init__(self,
147
148
self._loop = get_event_loop()
149
self._app_loop = new_event_loop()
150
- self._previous_winch_handler = signal.getsignal(signal.SIGWINCH)
+ self._previous_winch_handler = (
151
+ signal.getsignal(signal.SIGWINCH) if hasattr(signal, 'SIGWINCH') else None
152
+ )
153
self._has_sigwinch = False
154
155
def __enter__(self) -> 'ProgressBar':
0 commit comments