Fix server error 500 when user is logged out

f98ebaaf moved the passive_logon code to a new function from
api/__init__.py to util/flask.py.  Before that move any fallthrough
would hit return NO_CONTENT, but now it returns nothing which makes
flask complain.
This commit is contained in:
Mark Walker 2015-04-15 17:17:19 -07:00
parent c5484fe139
commit e8f61e2dda

View file

@ -58,6 +58,8 @@ def passive_login():
logger = logging.getLogger(__name__)
logger.exception("Could not autologin user %s for networks %r" % (autologinAs, localNetworks))
return ("", 204)
#~~ cache decorator for cacheable views
@ -303,4 +305,4 @@ def get_json_command_from_request(request, valid_commands):
if not parameter in data:
return None, None, make_response("Mandatory parameter %s missing for command %s" % (parameter, command), 400)
return command, data, None
return command, data, None