mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-16 16:00:17 +02:00
Ensure api backoff returns result of decorated function
This commit is contained in:
parent
0f1535161c
commit
91ec924acc
@ -118,8 +118,7 @@ def api_backoff(func):
|
|||||||
global_ratelimit=bool(existing_global_backoff)
|
global_ratelimit=bool(existing_global_backoff)
|
||||||
)
|
)
|
||||||
logger.debug("Calling API calling function")
|
logger.debug("Calling API calling function")
|
||||||
func(*args, **kwargs)
|
return func(*args, **kwargs)
|
||||||
break
|
|
||||||
except requests.HTTPError as e:
|
except requests.HTTPError as e:
|
||||||
if e.response.status_code == 429:
|
if e.response.status_code == 429:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user