From df69670e32b1936c860f45cde326504385dd2f98 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 19 Dec 2019 13:51:37 +0530 Subject: [PATCH] fix: patch home_settings_for_all_users --- frappe/patches/v12_0/fix_home_settings_for_all_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/patches/v12_0/fix_home_settings_for_all_users.py b/frappe/patches/v12_0/fix_home_settings_for_all_users.py index 8a6bcca9a0..7ab43e7a3d 100644 --- a/frappe/patches/v12_0/fix_home_settings_for_all_users.py +++ b/frappe/patches/v12_0/fix_home_settings_for_all_users.py @@ -25,7 +25,7 @@ def execute(): all_modules = set([m.get('name') or m.get('module_name') or m.get('label') \ for m in all_modules if m.get('category') in category_to_check]) - hidden_modules = home_settings['hidden_modules'] + hidden_modules = home_settings.get("hidden_modules", []) modules_in_home_settings = set(visible_modules + hidden_modules)