Skip to content

Commit 276985b

Browse files
fix: replace bare except with except Exception in prometheus_discovery_utils.py
1 parent 7a8b5ac commit 276985b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/robusta/core/sinks/robusta/prometheus_discovery_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _get_query_prometheus_value(self, query: str) -> Optional[float]:
7373
value = query_result.vector_result[0]["value"]["value"]
7474
return_value = float("%.2f" % float(value))
7575
return return_value if return_value >= 0 else None
76-
except:
76+
except Exception:
7777
logging.exception("PrometheusDiscoveryUtils failed to get prometheus results.")
7878
return
7979

0 commit comments

Comments
 (0)