[Python-modules-team] Bug#476796: python-usb: «No error» should not throw an exception
Tollef Fog Heen
tfheen at err.no
Sat Apr 19 08:40:36 UTC 2008
Package: python-usb
Version: 0.4.1-2
I recently acquired a USB device from Atmel, the Raven kit and am
playing around with that, including trying to get it to interface with
my Linux system.
http://code.rancidbacon.com/LearningAboutAtmelRZRAVEN has some code on
it (http://code.rancidbacon.com/files/test_raven_usb.py). While
running this code, I get a traceback, which looks just bogus:
Traceback (most recent call last):
File "test_raven_usb.py", line 69, in <module>
print hex(handle.bulkRead(0x84, 1)[0])
usb.USBError: No error
please don't raise exceptions when all you have to report is that no
error occured.
--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are
More information about the Python-modules-team
mailing list