From 1b24b3a4490d7c5c978f4a55c33487b8b202a260 Mon Sep 17 00:00:00 2001 From: Jage9 Date: Sat, 28 Feb 2026 00:23:28 -0500 Subject: [PATCH] Ignore stale item-type folders without plugin.py --- server/app/items/registry.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/app/items/registry.py b/server/app/items/registry.py index e413fd6..cecb0c9 100644 --- a/server/app/items/registry.py +++ b/server/app/items/registry.py @@ -53,6 +53,10 @@ def _load_item_type_plugins() -> list[ItemTypePlugin]: continue if entry.name.startswith("__"): continue + plugin_file = entry / "plugin.py" + if not plugin_file.exists(): + # Ignore stale/partial directories (for example, leftover cache folders). + continue plugin_module = import_module(f"{__package__}.types.{entry.name}.plugin") raw_plugin = getattr(plugin_module, "ITEM_TYPE_PLUGIN", None) if not isinstance(raw_plugin, dict):