diff options
author | Devaev Maxim <[email protected]> | 2021-01-23 07:00:49 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-01-23 07:00:49 +0300 |
commit | 4d4fb69d2eb2e9b3d677b82098d888bd899c8c33 (patch) | |
tree | c193f2a0db5fb34f5f58bd96d6ccd771177b1753 /kvmd/plugins/hid/otg/usb.py | |
parent | ebe40697a5935d5d35a36d0825715ca8c3824c6a (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins/hid/otg/usb.py')
-rw-r--r-- | kvmd/plugins/hid/otg/usb.py | 3 |
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 = "" |