diff --git a/Interlace/lib/core/input.py b/Interlace/lib/core/input.py index 4921ddd..0c11aa1 100644 --- a/Interlace/lib/core/input.py +++ b/Interlace/lib/core/input.py @@ -19,9 +19,12 @@ class InputHelper(object): @staticmethod def check_positive(parser, arg): - ivalue = int(arg) - if ivalue <= 0: - raise parser.ArgumentTypeError("%s is not a valid positive integer!" % arg) + try: + ivalue = int(arg) + if ivalue <= 0: + raise parser.ArgumentTypeError("%s is not a valid positive integer!" % arg) + except ValueError as e: + raise parser.ArgumentValueError("%s is not a a number!" % arg) return arg