Catching a pywintypes.api_error excpeption?
Derek Basch
dbasch at yahoo.com
Fri Aug 2 02:59:40 EDT 2002
Hi,
Can someone tell me how to catch this exception with a
try, except clause:
SetCommState(self.handle, dcb)
pywintypes.api_error: (87, 'SetCommState', 'The
parameter is incorrect.')
every exception I have previously worked with has been
a class such as IOError. How do i catch this one?
Thanks,
Derek Basch
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
More information about the Python-list
mailing list