mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-05 08:45:13 +00:00
Wait a second before retrying
This commit is contained in:
@@ -244,6 +244,7 @@ class Auth:
|
||||
)
|
||||
except Exception as e: # TODO: Too broad exception clause
|
||||
log.warning("Auth key creation failed. Let's try again: {}".format(repr(e)))
|
||||
time.sleep(1)
|
||||
continue
|
||||
else:
|
||||
return auth_key
|
||||
|
Reference in New Issue
Block a user