Skip to content

Commit

Permalink
userclass-picker: flake8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenester committed Aug 3, 2022
1 parent 4d50a04 commit 0f67c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def find_locustfiles(locustfiles: List[str], is_directory: Boolean) -> List[str]
sys.stderr.write(f"Invalid file '{file_path}'. File should have '.py' extension\n")
sys.exit(1)
if file_path.endswith("locust.py"):
sys.stderr.write(f"Invalid file 'locust.py'. File name cannot be 'locust.py'\n")
sys.stderr.write("Invalid file 'locust.py'. File name cannot be 'locust.py'\n")
sys.exit(1)

file_paths.append(file_path)
Expand Down

0 comments on commit 0f67c06

Please sign in to comment.