Ensure api backoff returns result of decorated function

(cherry picked from commit 91ec924acc7d9add3d751a0769193a6375678228)
This commit is contained in:
Adarnof 2018-02-22 02:10:27 -05:00
parent bd5ea38446
commit a90a52f426

View File

@ -117,8 +117,7 @@ def api_backoff(func):
global_ratelimit=bool(existing_global_backoff)
)
logger.debug("Calling API calling function")
func(*args, **kwargs)
break
return func(*args, **kwargs)
except requests.HTTPError as e:
if e.response.status_code == 429:
try: