From ef7ee13a56930b328959045ccbabcd6ab53cfd12 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 22 Dec 2017 09:27:47 +0100 Subject: [PATCH] Wait a second before retrying --- pyrogram/session/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyrogram/session/auth.py b/pyrogram/session/auth.py index 35dc8c37..f40b43e9 100644 --- a/pyrogram/session/auth.py +++ b/pyrogram/session/auth.py @@ -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