changed some defaults

This commit is contained in:
Devaev Maxim
2019-10-24 02:42:19 +03:00
parent 97e2d9128c
commit 096064cfbc
9 changed files with 33 additions and 36 deletions

View File

@@ -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: