aboutsummaryrefslogtreecommitdiff
path: root/qc_app/input_validation.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-12 12:04:08 -0500
committerFrederick Muriuki Muriithi2024-06-12 12:45:11 -0500
commit3abf09f5d5a0ab7fb3b1ca2be981c364ef68a8cb (patch)
treece724313414d3d9b6a3983f92ac3b1e204d166c5 /qc_app/input_validation.py
parentd95c29bdd643a827083b3e462d3f363d80c96024 (diff)
downloadgn-uploader-3abf09f5d5a0ab7fb3b1ca2be981c364ef68a8cb.tar.gz
Bug: Provide missing argument. Remove unused verr variable.
Diffstat (limited to 'qc_app/input_validation.py')
-rw-r--r--qc_app/input_validation.py6
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))))