From beb3086113c5a594ade5cff9fd1a726b18564693 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20B=C3=B6sel?= Date: Mon, 7 Mar 2022 12:45:22 +0100 Subject: [PATCH] fix generic except --- src/usb_hid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb_hid.py b/src/usb_hid.py index f7ecf97..cd225bf 100644 --- a/src/usb_hid.py +++ b/src/usb_hid.py @@ -689,7 +689,7 @@ def enable(requested_devices: Sequence[Device], boot_device: int = 0) -> None: Path("%s/hid.usb%s" % (config_root, report_id)).symlink_to( function_root ) - except: + except FileNotFoundError: pass # """ 5. Enabling the gadget # ---------------------- -- 2.49.0