diff --git a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_keyboard.py b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_keyboard.py index d65a9628c0..398d2e862e 100755 --- a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_keyboard.py +++ b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_keyboard.py @@ -535,9 +535,12 @@ def on_module_selected(self): home = os.path.expanduser("~") gettext.bindtextdomain(name, f"{home}/.local/share/locale") gettext.textdomain(name) - with open(f"{home}/.local/share/cinnamon/{_type}/{name}/metadata.json", encoding="utf-8") as metadata: - json_data = json.load(metadata) - category_label = gettext.gettext(_(json_data["name"])) + try: + with open(f"{home}/.local/share/cinnamon/{_type}/{name}/metadata.json", encoding="utf-8") as metadata: + json_data = json.load(metadata) + category_label = gettext.gettext(_(json_data["name"])) + except FileNotFoundError: + continue if not _id: cat_label = category_label if category_label else name CATEGORIES.append([cat_label, name, "spices", None, properties])