mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
changed some defaults
This commit is contained in:
@@ -50,6 +50,8 @@ class BasePlugin:
|
||||
|
||||
@functools.lru_cache()
|
||||
def get_plugin_class(sub: str, name: str) -> Type[BasePlugin]:
|
||||
assert sub
|
||||
assert name
|
||||
try:
|
||||
module = importlib.import_module(f"kvmd.plugins.{sub}.{name}")
|
||||
except ModuleNotFoundError:
|
||||
|
||||
Reference in New Issue
Block a user