Make error message consistent with "--workers requires argument"
This commit is contained in:
parent
4e2cb03eca
commit
ad411933e5
1 changed files with 1 additions and 1 deletions
2
vigil
2
vigil
|
|
@ -1116,7 +1116,7 @@ def process_arguments():
|
||||||
worker_count = (int(arguments["--workers"]) if arguments["--workers"]
|
worker_count = (int(arguments["--workers"]) if arguments["--workers"]
|
||||||
is not None else multiprocessing.cpu_count() * 2)
|
is not None else multiprocessing.cpu_count() * 2)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print("Please supply a number for --workers.")
|
print("--workers requires a number.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if worker_count == 0:
|
if worker_count == 0:
|
||||||
print("There must be at least one worker.")
|
print("There must be at least one worker.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue