summaryrefslogtreecommitdiff
path: root/kvmd/tools.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-01-23 07:00:49 +0300
committerDevaev Maxim <[email protected]>2021-01-23 07:00:49 +0300
commit4d4fb69d2eb2e9b3d677b82098d888bd899c8c33 (patch)
treec193f2a0db5fb34f5f58bd96d6ccd771177b1753 /kvmd/tools.py
parentebe40697a5935d5d35a36d0825715ca8c3824c6a (diff)
refactoring
Diffstat (limited to 'kvmd/tools.py')
-rw-r--r--kvmd/tools.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmd/tools.py b/kvmd/tools.py
index e75dd02a..8857796d 100644
--- a/kvmd/tools.py
+++ b/kvmd/tools.py
@@ -33,6 +33,11 @@ from typing import TypeVar
# =====
+def efmt(err: Exception) -> str:
+ return f"{type(err).__name__}: {err}"
+
+
+# =====
def merge(dest: Dict, src: Dict) -> None:
for key in src:
if key in dest: