From 3abf09f5d5a0ab7fb3b1ca2be981c364ef68a8cb Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 12 Jun 2024 12:04:08 -0500 Subject: Bug: Provide missing argument. Remove unused verr variable. --- qc_app/input_validation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qc_app') 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)))) -- cgit v1.2.3