We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a36d33 commit dec0a60Copy full SHA for dec0a60
temporalio/worker/_nexus.py
@@ -337,14 +337,9 @@ async def _operation_error_to_proto(
337
self,
338
err: nexusrpc.OperationError,
339
) -> temporalio.api.nexus.v1.UnsuccessfulOperationError:
340
- # TODO(nexus-prerelease): why are we accessing __cause__ here for OperationError
341
- # and not for HandlerError?
342
- cause = err.__cause__
343
- if cause is None:
344
- cause = Exception(*err.args).with_traceback(err.__traceback__)
345
return temporalio.api.nexus.v1.UnsuccessfulOperationError(
346
operation_state=err.state.value,
347
- failure=await self._exception_to_failure_proto(cause),
+ failure=await self._exception_to_failure_proto(err),
348
)
349
350
async def _handler_error_to_proto(
0 commit comments