Skip to content

Commit

Permalink
run_single_user: Dont raise a new exception there's an unhandled exce…
Browse files Browse the repository at this point in the history
…ption in init event, just exit.
  • Loading branch information
cyberw committed Oct 20, 2024
1 parent c68c4e1 commit 94a1044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def run_single_user(
_env.events.init.fire(environment=_env, runner=None, web_ui=None)
# uncaught events will be suppressed, so check if that happened
if locust.log.unhandled_greenlet_exception:
raise Exception("Unhandled exception in init")
os._exit(1)

# do the things that the Runner usually does
_env.user_classes = [user_class]
Expand Down

0 comments on commit 94a1044

Please sign in to comment.