You're a magic man. The parameter signatures didn't match on my event handlers and the exception was getting eaten.

Thanks for the logging tip ... very useful!

Cheers,
Sandy


Thomas Heller wrote:
If an exception happens in your event handler (before something is printed),
or an exception happens calling your event handler (for example if it is called
with more or less arguments than it expects), then comtypes catches the 
exception
and logs an error via Pythons logging module.  So, to see the exceptions if 
there
are any, you must configure logging to not swallow the exceptions silently.
Adding these lines at the top of your script should work, for example:

import logging; logging.basicConfig(level=logging.ERROR)

begin:vcard
fn:Alexander "Sandy" Walsh
n:Walsh;Alexander "Sandy"
org:Impath Networks
adr:Suite 100;;42 Payzant Ave;Halifax;NS;B3B 1Z6;Canada
email;internet:swa...@impathnetworks.com
title:Software Developer
tel;work:902-468-1010 x 246
x-mozilla-html:FALSE
url:http://www.impathnetworks.com http://www.pstdvr.com
version:2.1
end:vcard

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to