summaryrefslogtreecommitdiff
path: root/retrying.py
diff options
context:
space:
mode:
authorAlex Kuang <akuang@bizo.com>2014-05-05 08:58:26 -0400
committerAlex Kuang <akuang@bizo.com>2014-05-05 08:58:26 -0400
commitff817d98fc98b722befb3bbb1a6a53cc3f207a5d (patch)
treecdfd3866cdf52234815076c5300edf79cb852077 /retrying.py
parentc86e061eaa65b960ce6c56439a05d9f1c9d55717 (diff)
downloadretrying-ff817d98fc98b722befb3bbb1a6a53cc3f207a5d.tar.gz
Fix AttributeError when explicitly specifying wait type, and add appropriate regression tests. (fixes #4)
Diffstat (limited to 'retrying.py')
-rw-r--r--retrying.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/retrying.py b/retrying.py
index d705d14..b337744 100644
--- a/retrying.py
+++ b/retrying.py
@@ -151,7 +151,7 @@ class Retrying(object):
self.wait = lambda attempts, delay: max(f(attempts, delay) for f in wait_funcs)
else:
- self.wait = self.getattr(wait)
+ self.wait = getattr(self, wait)
# retry on exception filter
if retry_on_exception is None: