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
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32