File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ async def _start_operation(
306
306
"nexusrpc.handler.StartOperationResultAsync."
307
307
)
308
308
)
309
- except nexusrpc .handler . OperationError as err :
309
+ except nexusrpc .OperationError as err :
310
310
return temporalio .api .nexus .v1 .StartOperationResponse (
311
311
operation_error = await self ._operation_error_to_proto (err ),
312
312
)
@@ -332,7 +332,7 @@ async def _exception_to_failure_proto(
332
332
333
333
async def _operation_error_to_proto (
334
334
self ,
335
- err : nexusrpc .handler . OperationError ,
335
+ err : nexusrpc .OperationError ,
336
336
) -> temporalio .api .nexus .v1 .UnsuccessfulOperationError :
337
337
cause = err .__cause__
338
338
if cause is None :
Original file line number Diff line number Diff line change 27
27
import httpx
28
28
import nexusrpc
29
29
import pytest
30
- from nexusrpc import OperationInfo
30
+ from nexusrpc import OperationError , OperationErrorState , OperationInfo
31
31
from nexusrpc .handler import (
32
32
CancelOperationContext ,
33
33
FetchOperationInfoContext ,
34
34
FetchOperationResultContext ,
35
35
HandlerError ,
36
36
HandlerErrorType ,
37
- OperationError ,
38
- OperationErrorState ,
39
37
OperationHandler ,
40
38
StartOperationContext ,
41
39
service_handler ,
You can’t perform that action at this time.
0 commit comments