> 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