Skip to content

Commit

Permalink
Fix 404 error breaking new datatables when no user preference exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Nov 22, 2017
1 parent 35d91d6 commit 4311931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alignak_webui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ def get_user_preference():

key_value = datamgr.get_user_preferences(user, _key, default)
if key_value is None:
response.status = 404
response.status = 200
response.content_type = 'application/json'
return json.dumps({'status': 'ko',
'message': 'Unknown key: %s' % _key})
Expand Down

0 comments on commit 4311931

Please sign in to comment.