mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +00:00
More verbose error
This commit is contained in:
parent
5e157c2598
commit
b6817bc90a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user