raise other exceptions in antiflood

This commit is contained in:
orocane 2022-09-10 15:59:40 +08:00
parent 4fd01e3ac8
commit 783beb165b
1 changed files with 4 additions and 0 deletions

View File

@ -654,6 +654,10 @@ def antiflood(function: Callable, *args, **kwargs):
if ex.error_code == 429:
sleep(ex.result_json['parameters']['retry_after'])
msg = function(*args, **kwargs)
else:
raise
except:
raise
finally:
return msg