From b842154ded92ac17b377e7993d9859c5c7744337 Mon Sep 17 00:00:00 2001 From: Ray Holder Date: Tue, 22 Jan 2013 00:24:52 -0600 Subject: stop committing nonsense examples... --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.rst') 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. -- cgit v1.2.1