[Tutor] Catching OLE error

Bernard Lebel 3dbernard at gmail.com
Thu Jul 14 15:43:59 CEST 2005


Hello,

A simple question: what is the syntax in a try/except for the OLE error?

Let say you want to catch OLE error:

try: print stuff
except OLEError: print 'ole'

Now the problem is that I just can't seem to find anything how the
exact grammar of this error! I have looked in the Python
documentation, as well as the pywin32 documentation, I have tried many
different ways of typing it, I googled around, but yet I just can't
find it.


Thanks
Bernard


More information about the Tutor mailing list