From b6817bc90a062ed3649118ad97ac3d5202aee8ec Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 19 Dec 2017 11:33:45 +0100 Subject: [PATCH] More verbose error --- pyrogram/session/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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