Skip to content

Commit 7a47adf

Browse files
authored
[ml] Revert Exception to MlException change in activity.py (Azure#35464)
* Remove Optional type annotation from get() methods * Remove duplicate overloads * Replace MlException with Exception * Revert accidental change * Move disable message
1 parent 7c624e0 commit 7a47adf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/_telemetry/activity.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def log_activity(
211211
and activityLogger.activity_info["errorCategory"] # type: ignore[index]
212212
in [ErrorCategory.SYSTEM_ERROR, ErrorCategory.UNKNOWN]
213213
):
214-
raise MlException("Got InternalSDKError", e) from e
214+
# pylint: disable=W0719
215+
raise Exception("Got InternalSDKError", e) from e
215216
raise
216217
raise
217218
finally:

0 commit comments

Comments
 (0)