More verbose error

This commit is contained in:
Dan 2017-12-19 11:33:45 +01:00
parent 5e157c2598
commit b6817bc90a

View File

@ -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