You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/iromli/contrib/backoff/backoff/_sync.py", line 104, in retry
ret = target(*args, **kwargs)
File "/home/iromli/contrib/backoff/dist/testing_backoff.py", line 14, in wait_for
raise ValueError("err")
ValueError: err
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/iromli/contrib/backoff/dist/testing_backoff.py", line 18, in <module>
wait_for()
File "/home/iromli/contrib/backoff/backoff/_sync.py", line 117, in retry
seconds = _next_wait(wait, e, jitter, elapsed, max_time)
File "/home/iromli/contrib/backoff/backoff/_common.py", line 54, in _next_wait
seconds = min(seconds, max_time - elapsed)
TypeError: unsupported operand type(s) for -: 'function' and 'float'
It seems that when calling _next_wait function, the max_time value is the callable instead of the actual value returned by callable.
Thanks..
The text was updated successfully, but these errors were encountered:
I'm trying to upgrade
backoff
fromv1.11.x
tov2.1.0
but blocked by an error when passing callable tomax_time
argument, as seen in the example below:Here's the traceback:
It seems that when calling
_next_wait
function, themax_time
value is the callable instead of the actual value returned by callable.Thanks..
The text was updated successfully, but these errors were encountered: