This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch users/damccorm/metricError
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/users/damccorm/metricError by
this push:
new e44eb56a0b2 Exception -> RuntimeError
e44eb56a0b2 is described below
commit e44eb56a0b2f788a0ed80ef54ac1cd37539712a8
Author: Danny McCormick <[email protected]>
AuthorDate: Thu Jul 27 21:23:46 2023 -0400
Exception -> RuntimeError
---
sdks/python/apache_beam/metrics/monitoring_infos.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdks/python/apache_beam/metrics/monitoring_infos.py
b/sdks/python/apache_beam/metrics/monitoring_infos.py
index 99e9fbaecef..ae12c93a571 100644
--- a/sdks/python/apache_beam/metrics/monitoring_infos.py
+++ b/sdks/python/apache_beam/metrics/monitoring_infos.py
@@ -303,7 +303,7 @@ def create_monitoring_info(urn, type_urn, payload,
labels=None):
return metrics_pb2.MonitoringInfo(
urn=urn, type=type_urn, labels=labels or {}, payload=payload)
except TypeError as e:
- raise Exception(
+ raise RuntimeError(
f'Failed to create MonitoringInfo for urn {urn} type {type} labels ' +
'{labels} and payload {payload}') from e