[Tutor] Catching OLE error

Bernard Lebel 3dbernard at gmail.com
Fri Jul 15 02:22:51 CEST 2005

Thanks Alan,

I'll check it out.


On 7/14/05, Alan G <alan.gauld at freenet.co.uk> wrote:
> > Isn't the OLEError alike the ValueError, KeyError and so on?
> > If so shouldn't it go before the colon?
> The problem, as I understand it, is that OLEError is not coming
> from Python but from COM.
> So the errors are getting raised before Python even knows there
> is a problem, so it cannot catch them in an except block.
> From my very limited expoerience of COM programming I'd guess
> that there is a type mismatch somewhere either in the data you
> are passing in or in the data you are getting back.
> But thats just a guess based on the fact that at lreast 80% of
> my COM programming errors have been data type inconsistencies!
> HTH,
> Alan G.

More information about the Tutor mailing list