Agent: Change the positive_int definition to contain 0

This commit is contained in:
vakarisz 2022-06-22 17:39:25 +03:00
parent 8358253fc7
commit 8d2078048c
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import argparse
def positive_int(_input: str): def positive_int(_input: str):
int_value = int(_input) int_value = int(_input)
if int_value <= 0: if int_value < 0:
raise argparse.ArgumentTypeError(f"{_input} is not a positive integer") raise argparse.ArgumentTypeError(f"{_input} is not a positive integer")
return int_value return int_value