diff options
author | Alex Kuang <akuang@bizo.com> | 2014-05-05 08:58:26 -0400 |
---|---|---|
committer | Alex Kuang <akuang@bizo.com> | 2014-05-05 08:58:26 -0400 |
commit | ff817d98fc98b722befb3bbb1a6a53cc3f207a5d (patch) | |
tree | cdfd3866cdf52234815076c5300edf79cb852077 /retrying.py | |
parent | c86e061eaa65b960ce6c56439a05d9f1c9d55717 (diff) | |
download | retrying-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.py | 2 |
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: |