Skip to content

Commit b6817bc

Browse files
committed
More verbose error
1 parent 5e157c2 commit b6817bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyrogram/session/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ def create(self):
242242
set_client_dh_params_answer.__class__.__name__
243243
)
244244
)
245-
except: # TODO: Too broad exception clause
246-
log.warning("Auth key creation failed. Let's try again.")
245+
except Exception as e: # TODO: Too broad exception clause
246+
log.warning("Auth key creation failed. Let's try again: {}".format(repr(e)))
247247
continue
248248
else:
249249
return auth_key

0 commit comments

Comments
 (0)