Re: [python-win32] How to catch a COM error

2006-01-10 Thread Mark Hammond
> Hi guys, > > This is a silly question but how do I capture a com_error from another > module? Below is the code I'm trying but it's not working. I get > this error: > Traceback (most recent call last): > ... > except com_error: > NameError: name 'com_error' is not defined com_error is in

Re: [python-win32] How to catch a COM error

2006-01-10 Thread Gregory Piñero
Just wanted to check if this made it to you guys? Not because I'm impatient, just that some of my emails haven't been making to the list lately. -Greg On 1/10/06, Gregory Piñero <[EMAIL PROTECTED]> wrote: > Hi guys, > > This is a silly question but how do I capture a com_error from another > mo

[python-win32] How to catch a COM error

2006-01-10 Thread Gregory Piñero
Hi guys, This is a silly question but how do I capture a com_error from another module? Below is the code I'm trying but it's not working. I get this error: Traceback (most recent call last): ... except com_error: NameError: name 'com_error' is not defined import module_that_uses_c