Skip to content

Commit 63c21fe

Browse files
committed
Cleanup
1 parent b6e084d commit 63c21fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

temporalio/worker/_nexus.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,11 @@ async def _handle_start_operation_task(
225225
start_response = await self._start_operation(start_request, headers)
226226
except BaseException as err:
227227
logger.warning("Failed to execute Nexus start operation method")
228-
handler_err = _exception_to_handler_error(err)
229228
completion = temporalio.bridge.proto.nexus.NexusTaskCompletion(
230229
task_token=task_token,
231-
error=await self._handler_error_to_proto(handler_err),
230+
error=await self._handler_error_to_proto(
231+
_exception_to_handler_error(err)
232+
),
232233
)
233234
if isinstance(err, concurrent.futures.BrokenExecutor):
234235
self._fail_worker_exception_queue.put_nowait(err)

0 commit comments

Comments
 (0)