diff --git a/pyrogram/session/auth.py b/pyrogram/session/auth.py index f90c64df..35dc8c37 100644 --- a/pyrogram/session/auth.py +++ b/pyrogram/session/auth.py @@ -242,8 +242,8 @@ class Auth: set_client_dh_params_answer.__class__.__name__ ) ) - except: # TODO: Too broad exception clause - log.warning("Auth key creation failed. Let's try again.") + except Exception as e: # TODO: Too broad exception clause + log.warning("Auth key creation failed. Let's try again: {}".format(repr(e))) continue else: return auth_key