You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2023/07/28 01:23:58 UTC

[beam] branch users/damccorm/metricError updated: Exception -> RuntimeError

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 <da...@google.com>
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