mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #10524 from OlegZharkov/proper-error
informative error message on /api/authenticate/baseauth
This commit is contained in:
@@ -94,7 +94,10 @@ class AuthenticationController(BaseAPIController):
|
||||
|
||||
:raises: HTTPBadRequest
|
||||
"""
|
||||
split = encoded_str.strip().split(' ')
|
||||
try:
|
||||
split = encoded_str.strip().split(' ')
|
||||
except AttributeError:
|
||||
raise exceptions.RequestParameterInvalidException('Authentication is missing')
|
||||
|
||||
# If split is only one element, try to decode the email and password
|
||||
# directly.
|
||||
|
||||
Reference in New Issue
Block a user