Signed-off-by: Mantas Mikulėnas <grawity@xxxxxxxxx> --- lsusb.py.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lsusb.py.in b/lsusb.py.in index f9e273d..0d7ff95 100644 --- a/lsusb.py.in +++ b/lsusb.py.in @@ -610,9 +610,8 @@ def main(argv): if usbids[0]: try: parse_usb_ids() - except: - print(" WARNING: Failure to read usb.ids", file=sys.stderr) - #print(sys.exc_info(), file=sys.stderr) + except IOError as e: + print("Warning: Failure to read usb.ids:", e, file=sys.stderr) read_usb() # Entry point -- 2.21.0