Skip to content

Commit

Permalink
Do not abort provisioning on Error.NO_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Oct 24, 2023
1 parent f21b962 commit fff823a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion improv_ble_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ async def _provision() -> str | None:
"""Execute the procedure"""

def handle_error(value: prot.Error) -> None:
if error_fut.done():
if value == prot.Error.NO_ERROR or error_fut.done():
return
error_fut.set_result(value)

Expand Down

0 comments on commit fff823a

Please sign in to comment.