Skip to content

Commit cce7335

Browse files
committed
[NRL-1470] Fix sonarcloud warning on use of generic Exception
1 parent a918e16 commit cce7335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utilities/api_clients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def wrapper(*args: Any, **kwargs: Any) -> Any:
5656
print( # noqa: T201
5757
f"All attempts failed with responses: {attempt_responses}"
5858
)
59-
raise Exception(
59+
raise RuntimeError(
6060
f"Function failed after retries with responses: {attempt_responses}"
6161
)
6262

0 commit comments

Comments
 (0)