Want to catch pywintypes.api_error
Mark Hammond
MarkH at ActiveState.com
Tue Mar 13 08:31:50 EST 2001
Franz GEIGER wrote:
> When I start win32api.FindFiles(filespec) with a non-existing filespec it
> throws an exception of class pywintypes.api_error. But a "except
> pywintypes.api_error, e:" does not work. Using "except Exception, e:" does
> the job, because Exception is the base class. But how can I catch api_error?
> What do I miss?
>
win32api.error
Mark.
More information about the Python-list
mailing list