diff options
author | Devaev Maxim <[email protected]> | 2020-10-28 22:29:27 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-11 22:24:25 +0300 |
commit | 08b96b7ada3363f599c9f58d091d9a06d54c2031 (patch) | |
tree | 0f2d0747ba6e6ebe5c7a889a455002027ba3611d /kvmd/plugins/__init__.py | |
parent | dc0340583ecd2f76939edfc85cf69417743c088d (diff) |
serial phy layer
Diffstat (limited to 'kvmd/plugins/__init__.py')
-rw-r--r-- | kvmd/plugins/__init__.py | 2 |
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: |