Replace deprecated tenacity.Retrying.call

... by the __call__ method following the deprecation in the tenacity
library[1].

[1] d66af82a70

Change-Id: Ib2934ff730f99e1a777c106f2c41a73b1cae3d27
This commit is contained in:
Takashi Kajinami 2021-07-23 03:12:43 +09:00
parent 736454730f
commit 249943b969
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def retry(exceptions, interval=1, retries=3, backoff_rate=2):
retry=tenacity.retry_if_exception_type(exceptions),
wait=tenacity.wait_exponential(
multiplier=interval, min=0, exp_base=backoff_rate))
return r.call(f, *args, **kwargs)
return r(f, *args, **kwargs)
return _wrapper