mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Wait a second before retrying
This commit is contained in:
parent
e8f04793ea
commit
ef7ee13a56
1 changed files with 1 additions and 0 deletions
|
|
@ -244,6 +244,7 @@ class Auth:
|
||||||
)
|
)
|
||||||
except Exception as e: # TODO: Too broad exception clause
|
except Exception as e: # TODO: Too broad exception clause
|
||||||
log.warning("Auth key creation failed. Let's try again: {}".format(repr(e)))
|
log.warning("Auth key creation failed. Let's try again: {}".format(repr(e)))
|
||||||
|
time.sleep(1)
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
return auth_key
|
return auth_key
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue