diff --git a/lib/galaxy/webapps/galaxy/api/authenticate.py b/lib/galaxy/webapps/galaxy/api/authenticate.py index 475347957dd..ac29256dce0 100644 --- a/lib/galaxy/webapps/galaxy/api/authenticate.py +++ b/lib/galaxy/webapps/galaxy/api/authenticate.py @@ -95,10 +95,8 @@ class AuthenticationController(BaseAPIController): try: split = encoded_str.strip().split(' ') except AttributeError: - if not encoded_str: - raise exceptions.RequestParameterInvalidException('Authentication is missing') - else: - raise exceptions.MessageException('Failed to authenticate') + raise exceptions.RequestParameterInvalidException('Authentication is missing') + # If split is only one element, try to decode the email and password # directly.