From 0e9d68aa2a490753209f85d447572fd0c10684e9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 21 Jun 2018 10:51:11 +1000 Subject: [PATCH] colors: fix test --- pywal/colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))