Cope with attribute errors being converted (#36911)

This commit is contained in:
craiggenner authored and GitHub committed 2020-06-19 05:36:56 +02:00
1 parent f83d4e524b
commit 212660330f
1 file changed
+1 -1
@@ -167,7 +167,7 @@ class PrometheusMetrics:
try:
value = float(value)
metric.labels(**self._labels(state)).set(value)
except ValueError:
except (ValueError, TypeError):
pass
def _metric(self, metric, factory, documentation, extra_labels=None):