mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +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__
|
set_client_dh_params_answer.__class__.__name__
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
except: # TODO: Too broad exception clause
|
except Exception as e: # TODO: Too broad exception clause
|
||||||
log.warning("Auth key creation failed. Let's try again.")
|
log.warning("Auth key creation failed. Let's try again: {}".format(repr(e)))
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
return auth_key
|
return auth_key
|
||||||
|
Loading…
Reference in New Issue
Block a user