mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Retry should raise same exception when failed
This commit is contained in:
parent
0c9355abc1
commit
6e81b91a65
@ -53,7 +53,8 @@ def __retry_internal(f, exceptions=Exception, tries=-1, delay=0, max_delay=None,
|
||||
except exceptions as e:
|
||||
_tries -= 1
|
||||
if not _tries:
|
||||
raise
|
||||
# Difference, raise same exception
|
||||
raise e
|
||||
|
||||
if logger is not None:
|
||||
# Difference, show exception
|
||||
|
||||
Loading…
Reference in New Issue
Block a user