[python-win32] StartDoc failed
Luc Saffre
luc.saffre at gmx.net
Mon Feb 28 03:23:26 CET 2005
On 28.02.2005 03:40, Mark Hammond wrote:
>>if my default windows printer is a network printer and not available,
>>then dc.StartDoc() causes a traceback which I cannot catch using
>>try...except.
>
> You can catch it via try/except. In your specific example, you would want
> to catch win32ui.error. The reason catching Exception doesn't work is
> because win32ui.error does not sub-class Exception.
Thanks! This helped!
Luc
More information about the Python-win32
mailing list