diff --git a/host/pygreat/comms_backends/usb.py b/host/pygreat/comms_backends/usb.py index 6d1b1c6..558fc93 100644 --- a/host/pygreat/comms_backends/usb.py +++ b/host/pygreat/comms_backends/usb.py @@ -145,6 +145,9 @@ def _hold_libgreat_interface(self, timeout=1000): # If we have EBUSY (linux) or EACCES (macos), or None (windows), try again. if e.errno in (errno.EBUSY, errno.EACCES, None): pass + # If we have None (windows), just return + elif e.errno in (None, ): + return else: raise