summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorRay Holder <ray@blacklocus.com>2013-01-22 00:24:52 -0600
committerRay Holder <ray@blacklocus.com>2013-01-22 00:24:52 -0600
commitb842154ded92ac17b377e7993d9859c5c7744337 (patch)
treea0ff8380fb9e3eaab764fa84e7ac5d0bdd923e28 /README.rst
parent31b33d7f54845974772ccce375d75cd9dae1bc38 (diff)
downloadretrying-b842154ded92ac17b377e7993d9859c5c7744337.tar.gz
stop committing nonsense examples...
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index bae145e..b9f2229 100644
--- a/README.rst
+++ b/README.rst
@@ -102,9 +102,9 @@ Here are some snippets and parameters for building your own versions of retrying
def might_return_none():
print "Retry forever ignoring Exceptions with no wait if return value is None"
- @retry(wrap_exception=True)
- def only_raise_retry_error():
- print "Retry forever ignoring Exceptions with no wait if return value is None"
+ @retry(retry_on_exception=retry_if_io_error, wrap_exception=True)
+ def only_raise_retry_error_when_not_io_error():
+ print "Retry forever with no wait if an IOError occurs, raise any other errors wrapped in RetryError"
Any combination of stop, wait, etc. are also supported to give you the freedom to mix and match.