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)