Cope with attribute errors being converted (#36911)
This commit is contained in:
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):
|
||||
|
||||
Reference in new issue
Block a user