Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fb94938

Browse filesBrowse files
author
Jon Wayne Parrott
committed
Change-Id: I35cdfa4e3e0c0337792fdb4783e827bba5b2135e
1 parent 7b0bf5d commit fb94938
Copy full SHA for fb94938

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎datastore/cloud-client/snippets.py

Copy file name to clipboardExpand all lines: datastore/cloud-client/snippets.py
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.