Exception raised when SALClient given incorrect credentials could be clearer #64
Labels
Bug
Issues that report incorrect or undesirable behaviour(s)
Priority: 1
EVENTUAL: A low priority issue that is unlikely to be addressed until the priority increases.
Summary
When invalid credentials are passed to
SALClient.authenticate
, the exception which is raised issal.core.exception.InvalidResponse("The server did not return an authentication token")
. It would be better if anAuthenticationFailed
was raised.Possible fixes
Ideally
_handle_error
could be used to address this, but raise anInvalidReponse
if the response is both invalid and not a 401 error.The text was updated successfully, but these errors were encountered: