Skip to content

Commit

Permalink
Merge pull request #2696 from hangonlyra/master
Browse files Browse the repository at this point in the history
fix: Ensure locust does not crash when an User class has no task
  • Loading branch information
cyberw committed May 1, 2024
2 parents 0bfc7d5 + da60bcf commit 916c2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def main():

user_classes[key] = value
available_user_classes[key] = value
available_user_tasks[key] = value.tasks or None
available_user_tasks[key] = value.tasks or {}

if len(stats.PERCENTILES_TO_CHART) != 2:
logging.error("stats.PERCENTILES_TO_CHART parameter should be 2 parameters \n")
Expand Down

0 comments on commit 916c2fc

Please sign in to comment.