Commits

Anonymous committed 151894e

Harden retry/connect logic.
Under Windows ctypes failures to find function.

Comments (0)

Files changed (1)

                 break
             except IOError:
                 pass
+            except AttributeError:
+                # Seen under windows; AttributeError: function 'usb_detach_kernel_driver_np' not found
+                pass
             l.info('usb lcd not available, trying again in %d secs' % retry_delay_time)
             time.sleep(retry_delay_time)