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 16:24:26.369456+02 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 18:48:20.367364+02 by: dexev

My recent favorite is this one from Ruby:

"Constant Not Missing"

Comment policy

We will not edit your comments. However, we may delete your comments, or cause them to be hidden behind another link, if we feel they detract from the conversation. Commercial plugs are fine, if they are relevant to the conversation, and if you don't try to pretend to be a consumer. Annoying endorsements will be deleted if you're lucky, if you're not a whole bunch of people smarter and more articulate than you will ridicule you, and we will leave such ridicule in place.


Flutterby™ is a trademark claimed by

Dan Lyke
for the web publications at www.flutterby.com and www.flutterby.net.