Skip to content

Commit

Permalink
Don't write the full traceback to stdout when read is impossible in t…
Browse files Browse the repository at this point in the history
…he PyUSB mode, avoids polluting output with garbarge on Windows
  • Loading branch information
p1-mmr committed Jan 8, 2024
1 parent 6f82a11 commit 73b9ea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/inputs/usb_modem_pyusb.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def read_loop(self):

except Exception:

info('Connection from the mode closed: ' + format_exc())
info('Connection from the USB link closed')
debug('Reason for closing the link: ' + format_exc())
exit()

raw_payload += data_read
Expand Down

0 comments on commit 73b9ea8

Please sign in to comment.