From 4e0c7ec38e50cc9b9fe2e910014a3553de033008 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 30 Nov 2024 12:17:46 -0500 Subject: [PATCH] fixed typo in argument validation --- color-converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color-converter.py b/color-converter.py index a574bd1..785beb8 100644 --- a/color-converter.py +++ b/color-converter.py @@ -185,7 +185,7 @@ def validateArguments(args) : return False # Second, check that there is a color code to convert - if len(color) == 0 : + if len(args.color) == 0 : print('ERROR: Must enter both an input flag and color code (did you forget to wrap color code in quotes?)\nFor more info, use the \'-h\' or \'--help\' flag.') return False