aboutsummaryrefslogtreecommitdiff
path: root/qc_app/input_validation.py
diff options
context:
space:
mode:
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))))