Mercurial > code > home > repos > light9
changeset 1828:0d567241f1e0
collector: hide overflow USBErrors
Ignore-this: ca45cc51ec8c6cea1fdf857046bb56cc
author | drewp@bigasterisk.com |
---|---|
date | Sat, 09 Jun 2018 17:55:07 +0000 |
parents | cc65c40802f6 |
children | 201a44537c06 |
files | light9/collector/output.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/collector/output.py Sat Jun 09 17:41:45 2018 +0000 +++ b/light9/collector/output.py Sat Jun 09 17:55:07 2018 +0000 @@ -172,8 +172,9 @@ return True except usb.core.USBError as e: # not in main thread - msg = 'usb: sending %s bytes to %r; error %r' % (len(buf), self.uri, e) - print msg + if e.errno != 75: + msg = 'usb: sending %s bytes to %r; error %r' % (len(buf), self.uri, e) + print msg return False def countError(self):