diff options
author | Ray Holder <ray@blacklocus.com> | 2013-01-22 00:24:52 -0600 |
---|---|---|
committer | Ray Holder <ray@blacklocus.com> | 2013-01-22 00:24:52 -0600 |
commit | b842154ded92ac17b377e7993d9859c5c7744337 (patch) | |
tree | a0ff8380fb9e3eaab764fa84e7ac5d0bdd923e28 /README.rst | |
parent | 31b33d7f54845974772ccce375d75cd9dae1bc38 (diff) | |
download | retrying-b842154ded92ac17b377e7993d9859c5c7744337.tar.gz |
stop committing nonsense examples...
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |