From 291c65c58c00efea0ec246a39a2509aa9759a701 Mon Sep 17 00:00:00 2001 From: Abigail Austin <38941820+ArachnidAbby@users.noreply.github.com> Date: Sun, 6 Sep 2026 14:39:37 -0400 Subject: [PATCH 1/2] cause import error so bad things don't unintentionally happen when importing plugins that don't exist technically. (frozen-importer seems evil). --- openpluginloader/defaultstrategy.py | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openpluginloader/defaultstrategy.py b/openpluginloader/defaultstrategy.py index 5749e26..6c096f2 100644 --- a/openpluginloader/defaultstrategy.py +++ b/openpluginloader/defaultstrategy.py @@ -491,7 +491,7 @@ def find_spec(self, fullname: str, path, target=None) -> ModuleSpec | None: corrosponding_plugin = plugin if corrosponding_plugin is None: - return None + raise ImportError(f"Could not locate plugin: {plugin_name}.") # Use plugin entry when trying to import `__ENTRY__` if len(fullname_parts) >= 3 and fullname_parts[2] == "__ENTRY__": diff --git a/uv.lock b/uv.lock index 532311e..c4740a6 100644 --- a/uv.lock +++ b/uv.lock @@ -233,7 +233,7 @@ wheels = [ [[package]] name = "openpluginloader" -version = "1.0.3" +version = "1.0.4" source = { editable = "." } dependencies = [ { name = "packaging" }, From 1a8ac7e3e653da00cde869a29a398c4214b149a4 Mon Sep 17 00:00:00 2001 From: Abigail Austin <38941820+ArachnidAbby@users.noreply.github.com> Date: Sun, 6 Sep 2026 14:40:07 -0400 Subject: [PATCH 2/2] bump --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5e42b14..7615b09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openpluginloader" -version = "1.0.4" +version = "1.0.5" description = "A plugin loader library meant for wide use and quick adoption." readme = "README.md" requires-python = ">=3.13" diff --git a/uv.lock b/uv.lock index c4740a6..5ad16e8 100644 --- a/uv.lock +++ b/uv.lock @@ -233,7 +233,7 @@ wheels = [ [[package]] name = "openpluginloader" -version = "1.0.4" +version = "1.0.5" source = { editable = "." } dependencies = [ { name = "packaging" },