Skip to content

Commit 3d637f9

Browse files
committed
Fix possible unbound variable
1 parent 0ddcbed commit 3d637f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

temporalio/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6033,7 +6033,7 @@ def on_start(
60336033
input._on_start(start_response)
60346034
seen_start = True
60356035

6036-
err: BaseException
6036+
err: Optional[BaseException] = None
60376037

60386038
try:
60396039
return await self._start_workflow_update_with_start(
@@ -6086,7 +6086,7 @@ def on_start(
60866086

60876087
raise err
60886088
finally:
6089-
if not seen_start:
6089+
if err and not seen_start:
60906090
input._on_start_error(err)
60916091

60926092
async def _start_workflow_update_with_start(

0 commit comments

Comments
 (0)