diff --git a/locust/stats.py b/locust/stats.py index ef14e37fe0..bc9776d25e 100644 --- a/locust/stats.py +++ b/locust/stats.py @@ -30,7 +30,10 @@ def resize_handler(signum, frame): STATS_NAME_WIDTH = max(min(os.get_terminal_size()[0] - 80, 80), 0) -signal.signal(signal.SIGWINCH, resize_handler) +try: + signal.signal(signal.SIGWINCH, resize_handler) +except AttributeError: + pass # Windows doesnt have SIGWINCH STATS_TYPE_WIDTH = 8