summaryrefslogtreecommitdiff
path: root/kvmd/plugins/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/__init__.py')
-rw-r--r--kvmd/plugins/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/plugins/__init__.py b/kvmd/plugins/__init__.py
index ebdeaf0b..ea25bcfc 100644
--- a/kvmd/plugins/__init__.py
+++ b/kvmd/plugins/__init__.py
@@ -52,6 +52,8 @@ class BasePlugin:
def get_plugin_class(sub: str, name: str) -> Type[BasePlugin]:
assert sub
assert name
+ if name.startswith("_"):
+ raise UnknownPluginError(f"Unknown plugin '{sub}/{name}'")
try:
module = importlib.import_module(f"kvmd.plugins.{sub}.{name}")
except ModuleNotFoundError: