summaryrefslogtreecommitdiffstats
path: root/deluge/ui/console/modes/basemode.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2021-07-24 14:11:58 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2021-08-01 08:48:27 +0100
commitb89b2c45b145c33c41115a9aac6e46b085ce668a (patch)
tree8c373cdb925284b6915061659efb2444bfa0b89c /deluge/ui/console/modes/basemode.py
parente38f1173cf470f2f8373f2fa4edbb726c932c980 (diff)
downloaddeluge-b89b2c45b145c33c41115a9aac6e46b085ce668a.tar.gz
deluge-b89b2c45b145c33c41115a9aac6e46b085ce668a.tar.bz2
deluge-b89b2c45b145c33c41115a9aac6e46b085ce668a.zip
[Console] Fix using windows-curses on Windows
The console tests are still failing on Windows due to an issue where the sys args are not being correctly replaced in the tests so the pytest args are being passed to console.
Diffstat (limited to 'deluge/ui/console/modes/basemode.py')
-rw-r--r--deluge/ui/console/modes/basemode.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/deluge/ui/console/modes/basemode.py b/deluge/ui/console/modes/basemode.py
index 5520b0b46..5267eae5a 100644
--- a/deluge/ui/console/modes/basemode.py
+++ b/deluge/ui/console/modes/basemode.py
@@ -67,7 +67,9 @@ class TermResizeHandler(object):
try:
signal.signal(signal.SIGWINCH, self.on_terminal_size)
except ValueError as ex:
- log.debug('Unable to catch SIGWINCH signal: %s', ex)
+ log.debug('TermResize unavailable, unable to catch SIGWINCH signal: %s', ex)
+ except AttributeError as ex:
+ log.debug('TermResize unavailable, no SIGWINCH signal on Windows: %s', ex)
def on_terminal_size(self, *args):
# Get the new rows and cols value