Skip to content
Snippets Groups Projects
Commit b25c02d3 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

If we succeed, *succeed*. Don't raise an exception.

parent 544cacdc
No related branches found
No related tags found
1 merge request!10End-to-end with ristretto
......@@ -49,7 +49,7 @@ def retry(description, f):
print("trying to {}...".format(description))
if f():
print("{} succeeded".format(description))
break
return
sleep(1.0)
raise ValueError("failed to {} after many tries".format(description))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment