diff options
author | Frederick Muriuki Muriithi | 2024-06-12 12:04:08 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-06-12 12:45:11 -0500 |
commit | 3abf09f5d5a0ab7fb3b1ca2be981c364ef68a8cb (patch) | |
tree | ce724313414d3d9b6a3983f92ac3b1e204d166c5 | |
parent | d95c29bdd643a827083b3e462d3f363d80c96024 (diff) | |
download | gn-uploader-3abf09f5d5a0ab7fb3b1ca2be981c364ef68a8cb.tar.gz |
Bug: Provide missing argument. Remove unused verr variable.
-rw-r--r-- | qc_app/input_validation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qc_app/input_validation.py b/qc_app/input_validation.py index 96c2f05..9abe742 100644 --- a/qc_app/input_validation.py +++ b/qc_app/input_validation.py @@ -15,13 +15,13 @@ def is_integer_input(value: Any) -> bool: """ def __is_int__(val, base): try: - int(val, base=10) - except ValueError as verr: + int(val, base=base) + except ValueError: return False return True return isinstance(value, int) or ( (not is_empty_input(value)) and ( - isinstance(str) and ( + isinstance(value, str) and ( __is_int__(value, 10) or __is_int__(value, 8) or __is_int__(value, 16)))) |