summaryrefslogtreecommitdiff
path: root/kvmd/plugins/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-06-28 18:59:36 +0300
committerDevaev Maxim <[email protected]>2019-06-28 18:59:36 +0300
commitef3c62a7af520673154233e2d3c89492ffec3195 (patch)
tree2b78c5918143eff8ef2c89484ac99fc6b7588438 /kvmd/plugins/__init__.py
parentff270591b032cc1f8e342f20a04b84e5dbb31191 (diff)
f-strings
Diffstat (limited to 'kvmd/plugins/__init__.py')
-rw-r--r--kvmd/plugins/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/__init__.py b/kvmd/plugins/__init__.py
index d91cc2c8..a434b121 100644
--- a/kvmd/plugins/__init__.py
+++ b/kvmd/plugins/__init__.py
@@ -53,7 +53,7 @@ class BasePlugin:
@functools.lru_cache()
def get_plugin_class(sub: str, name: str) -> Type[BasePlugin]:
try:
- module = importlib.import_module("kvmd.plugins.{}.{}".format(sub, name))
+ module = importlib.import_module(f"kvmd.plugins.{sub}.{name}")
except ModuleNotFoundError:
- raise UnknownPluginError("Unknown plugin '%s/%s'" % (sub, name))
+ raise UnknownPluginError(f"Unknown plugin '{sub}/{name}'")
return getattr(module, "Plugin")