Skip to content

Commit

Permalink
Merge pull request #470 from digital-asset/python-retry-no-domain-for…
Browse files Browse the repository at this point in the history
…-submission

python: Automatically retry NO_DOMAIN_FOR_SUBMISSION.
  • Loading branch information
da-tanabe authored Jul 9, 2024
2 parents 3f54ccb + 1ad48cf commit d43a867
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/dazl/ledger/_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ def is_retryable_exception(ex: Exception) -> bool:
return True
elif status == StatusCode.FAILED_PRECONDITION:
details = ex.details()
return details is not None and details.startswith(
"PARTY_ALLOCATION_WITHOUT_CONNECTED_DOMAIN"
return details is not None and (
details.startswith("PARTY_ALLOCATION_WITHOUT_CONNECTED_DOMAIN")
or details.startswith("NO_DOMAIN_FOR_SUBMISSION")
)

return False
Expand Down

0 comments on commit d43a867

Please sign in to comment.