summaryrefslogtreecommitdiff
path: root/color-converter.py
diff options
context:
space:
mode:
Diffstat (limited to 'color-converter.py')
-rw-r--r--color-converter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/color-converter.py b/color-converter.py
index 9cf9f5b..950dc92 100644
--- a/color-converter.py
+++ b/color-converter.py
@@ -532,7 +532,7 @@ def validateHSLorHSV(color) :
# RETURNS
# truth if success, false if failure to detect a format
def detectColorFormat(color, outputFormats) :
- if 'rgb' in color.lower() :
+ if 'rgb' in color.lower() :
handleRGB(color, outputFormats)
return True
elif 'cmyk' in color.lower() :
@@ -547,7 +547,7 @@ def detectColorFormat(color, outputFormats) :
elif color.strip().startswith('hsv') :
handleHSVorHSL(color, 'hsv', outputFormats)
return True
- if '#' in color :
+ elif '#' in color :
handleHex(color, outputFormats)
return True
else :