[Tutor] Catching OLE error
alan.gauld at freenet.co.uk
Thu Jul 14 23:16:38 CEST 2005
> I just noticed you put OLEError before the colon you should have
> except: OLEError print "ole"
I doubt if that would work effectively.
> if that doesn't work you could just get rid of the OLEError bit
> and all errors will be ignored.
And that is decidedly dangerous unless you are sure that all
errors are safe to ignore. Which is rarely true.
> #COM Error: Unspecified failure - [line 540]
> #ERROR : OLE error 0x80020101
To the OP:
Have you tried lookingup the error number on MSDN,
or the error message on Google groups?
Both are powerful resources for deciphering OLE/COM errors.
More information about the Tutor