Flutterby™! : Annoyance of the moment

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

Annoyance of the moment

2008-10-24 14:24:26.369456+00 by Dan Lyke 1 comments

Annoyance of the moment: PyUSB reporting a read timeout with a usb.USBError("No error"). The work-around is

try:
    response = handle.bulkRead(0x81,50)
except usb.USBError, error:
    if error.message != "No error":
        print "Unexpected error:", error
        raise error

[ related topics: Software Engineering Python ]

comments in ascending chronological order (reverse):

#Comment Re: made: 2008-10-24 16:48:20.367364+00 by: dexev

My recent favorite is this one from Ruby:

"Constant Not Missing"