summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/otg/usb.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/hid/otg/usb.py')
-rw-r--r--kvmd/plugins/hid/otg/usb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/otg/usb.py b/kvmd/plugins/hid/otg/usb.py
index 17979003..e4615669 100644
--- a/kvmd/plugins/hid/otg/usb.py
+++ b/kvmd/plugins/hid/otg/usb.py
@@ -25,6 +25,7 @@ import os
from ....logging import get_logger
from .... import env
+from .... import tools
# =====
@@ -47,7 +48,7 @@ class UsbDeviceController:
try:
candidates = sorted(os.listdir(path))
except Exception as err:
- logger.error("Can't list %s: %s: %s: ignored", path, type(err).__name__, err)
+ logger.error("Can't list %s: %s: ignored", path, tools.efmt(err))
return
udc = ""