From 4311931f3f5042cfa73aec56a080a67062acd40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20MOHIER?= Date: Wed, 22 Nov 2017 16:52:24 +0100 Subject: [PATCH] Fix 404 error breaking new datatables when no user preference exist --- alignak_webui/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alignak_webui/app.py b/alignak_webui/app.py index 40d48ff7..0c064f39 100644 --- a/alignak_webui/app.py +++ b/alignak_webui/app.py @@ -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})