Skip to content

Commit 544a223

Browse files
committed
Updated pr.
1 parent 2367825 commit 544a223

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ads/aqua/common/decorator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ def inner_function(
7272
aqua_api_details=dict(
7373
# __qualname__ gives information of class and name of api
7474
aqua_api_name=func.__qualname__,
75-
oci_api_name=error.operation_name,
76-
service_endpoint=error.request_endpoint
75+
oci_api_name=getattr(
76+
error, "operation_name", "Unknown OCI Operation"
77+
),
78+
service_endpoint=getattr(
79+
error, "request_endpoint", "Unknown Request Endpoint"
80+
)
7781
)
7882
)
7983
except (

0 commit comments

Comments
 (0)