Skip to content

Commit b86f564

Browse files
author
Andrei Neagu
committed
raises upon error
1 parent 4c57119 commit b86f564

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/service-library/src/servicelib/long_running_tasks/_serialization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,6 @@ def loads(obj_str: str) -> Any:
7878
msg = f"Could not reconstruct object from data: {data}"
7979
raise ValueError(msg) from e
8080

81+
if isinstance(data, Exception):
82+
raise data
8183
return data

0 commit comments

Comments
 (0)