py3: make thresholds take None for an answer
@@ -1044,6 +1044,8 @@ class Py3:
self._thresholds_init()
color = None
+ # if value is None, pass it along. otherwise try it.
+ if value is not None:
try:
value = float(value)
except ValueError:
@@ -1054,7 +1056,8 @@ class Py3:
if name_used not in self._thresholds:
name_used = None
thresholds = self._thresholds.get(name_used)
- if color is None and thresholds:
+ # if value is None, pass it along. otherwise try it.
+ if value is not None and color is None and thresholds:
# if gradients are enabled then we use them
if self._get_config_setting('gradients'):
try:
