summaryrefslogtreecommitdiff
path: root/pywal/colors.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-06-21 10:51:11 +1000
committerDylan Araps <dylan.araps@gmail.com>2018-06-21 10:51:11 +1000
commit0e9d68aa2a490753209f85d447572fd0c10684e9 (patch)
treef9430f7ce1369c51fc0155415600f760d83e1803 /pywal/colors.py
parent7704f529c14dd85f37b15918aba657d37fd1aef3 (diff)
colors: fix test
Diffstat (limited to 'pywal/colors.py')
-rw-r--r--pywal/colors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pywal/colors.py b/pywal/colors.py
index e4fae46..ddf1899 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -75,7 +75,7 @@ def generic_adjust(colors, light):
def saturate_colors(colors, amount):
"""Saturate all colors."""
- if float(amount) <= 1.0:
+ if amount and float(amount) <= 1.0:
for i, _ in enumerate(colors):
if i not in [0, 7, 8, 15]:
colors[i] = util.saturate_color(colors[i], float(amount))