Skip to content

Commit fb94938

Browse files
author
Jon Wayne Parrott
committed
Change-Id: I35cdfa4e3e0c0337792fdb4783e827bba5b2135e
1 parent 7b0bf5d commit fb94938

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

datastore/cloud-client/snippets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,11 @@ def transfer_funds(client, from_key, to_key, amount):
668668
for _ in range(5):
669669
try:
670670
transfer_funds(client, account1.key, account2.key, 50)
671+
break
671672
except google.cloud.exceptions.Conflict:
672673
continue
674+
else:
675+
print('Trasaction failed.')
673676
# [END transactional_retry]
674677

675678
return account1.key, account2.key

0 commit comments

Comments
 (0)