Exception holes, again.

Patrick Vrijlandt p.vrijlandt at aig.azn.nl
Tue Nov 6 03:20:56 EST 2001


> I want to trap the specific 'api_error' exception raised by win32api.
>
> I can't find where that exception is defined so how do I catch it?
>

import win32api

try:
    blabla
except win32api.error:
    print 'caught an exception'

HTH
--
Patrick Vrijlandt





More information about the Python-list mailing list