Skip to content

Commit

Permalink
Updated pr.
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-ohai committed Nov 9, 2024
1 parent 2367825 commit 544a223
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ads/aqua/common/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ def inner_function(
aqua_api_details=dict(
# __qualname__ gives information of class and name of api
aqua_api_name=func.__qualname__,
oci_api_name=error.operation_name,
service_endpoint=error.request_endpoint
oci_api_name=getattr(
error, "operation_name", "Unknown OCI Operation"
),
service_endpoint=getattr(
error, "request_endpoint", "Unknown Request Endpoint"
)
)
)
except (
Expand Down

0 comments on commit 544a223

Please sign in to comment.