From 71ed9dde30c3eee5f3bce9972bb1ad0944840e91 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Tue, 22 Oct 2019 02:09:39 +0200 Subject: [PATCH] Revert "Exit with code 1 on greenlet exceptions" --- locust/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/main.py b/locust/main.py index b5a997cb8a..dfc9e8d6ba 100644 --- a/locust/main.py +++ b/locust/main.py @@ -516,7 +516,7 @@ def sig_term_handler(): logger.info("Starting Locust %s" % version) main_greenlet.join() code = 0 - if len(runners.locust_runner.errors) or main_greenlet.exception: + if len(runners.locust_runner.errors): code = options.exit_code_on_error shutdown(code=code) except KeyboardInterrupt as e: