Parenthesis fix on the JWT auth error message

This commit is contained in:
Joseph Schorr 2015-06-10 16:00:25 -04:00
parent b7303665a2
commit 457ee7306e

View file

@ -331,8 +331,8 @@ def _validate_jwt(config):
username = get_authenticated_user().username
result = users.user_exists(username)
if not result:
raise Exception('Verification of superuser %s failed. The user either does not exist ' +
'in the remote authentication system OR JWT auth is misconfigured.' % username)
raise Exception(('Verification of superuser %s failed. The user either does not exist ' +
'in the remote authentication system OR JWT auth is misconfigured.') % username)
_VALIDATORS = {