Skip to content

Commit

Permalink
[UPDATE] Argument Manager - null case
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Coutret-Rozet committed Jan 25, 2021
1 parent c6ed400 commit 5c1491e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/ArgumentManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def checkArgs(self, argv) -> int:
if isFloat(arg) is False:
print(f'ERROR: {arg} not a digit.')
return 84
elif float(arg) < 0:
elif float(arg) <= 0:
print(f'ERROR: {float(arg)} is negative.')
return 84
if isInt(argv[-1]) is False:
if isInt(argv[-1]) is False or int(argv[-1]) <= 0:
print(f'ERROR: {argv[-1]} not an integer.')
return 84

Expand Down

0 comments on commit 5c1491e

Please sign in to comment.