From a574f3d173e7f2f64ad7983187f141d369548761 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sun, 20 Jan 2019 03:22:17 +0100 Subject: [PATCH] Fix get settings of not visited site --- src/Ui/UiWebsocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ui/UiWebsocket.py b/src/Ui/UiWebsocket.py index 39985521..abe2e336 100644 --- a/src/Ui/UiWebsocket.py +++ b/src/Ui/UiWebsocket.py @@ -990,7 +990,7 @@ class UiWebsocket(object): return {"error": "Invalid address"} def actionUserGetSettings(self, to): - settings = self.user.sites[self.site.address].get("settings", {}) + settings = self.user.sites.get(self.site.address, {}).get("settings", {}) self.response(to, settings) def actionUserSetSettings(self, to, settings):