Update lib/galaxy/webapps/galaxy/api/authenticate.py

Co-authored-by: Dannon <dannon.baker@gmail.com>
This commit is contained in:
Oleg Zharkov
2020-10-22 16:23:14 +02:00
committed by GitHub
co-authored by Dannon
parent c54015466b
commit ef155452cf
@@ -96,11 +96,9 @@ class AuthenticationController(BaseAPIController):
split = encoded_str.strip().split(' ')
except AttributeError:
if not encoded_str:
raise exceptions.MessageException(
'Authentication is missing')
raise exceptions.MessageException('Authentication is missing')
else:
raise exceptions.MessageException(
'Failed to authenticate')
raise exceptions.MessageException('Failed to authenticate')
# If split is only one element, try to decode the email and password
# directly.