summaryrefslogtreecommitdiff
path: root/kvmd/plugins/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-28 22:29:27 +0300
committerDevaev Maxim <[email protected]>2020-11-11 22:24:25 +0300
commit08b96b7ada3363f599c9f58d091d9a06d54c2031 (patch)
tree0f2d0747ba6e6ebe5c7a889a455002027ba3611d /kvmd/plugins/__init__.py
parentdc0340583ecd2f76939edfc85cf69417743c088d (diff)
serial phy layer
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: