Skip to content

Commit

Permalink
Fix: Handle OTP initiation failures gracefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
PromiseFru committed Nov 14, 2024
1 parent fff8bc9 commit 10d28bc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bridge_grpc_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@ def create_entity(client_publish_pub_key=None, ownership_proof_response=None):
)

if not create_entity_response.success:
return None, response(
message=create_entity_response.message,
success=create_entity_response.success,
)
if not create_entity_response.message.startswith("OTP not initiated. "):
return None, response(
message=create_entity_response.message,
success=create_entity_response.success,
)

return (
response(
Expand Down

0 comments on commit 10d28bc

Please sign in to comment.