Update of /cvsroot/pywin32/pywin32/com/win32com/server
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2399
Modified Files:
policy.py
Log Message:
When we print info about a TypeError in an attempt to be helpful, be
even more helpful and indicate what the specific exception is!
Index: policy.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/server/policy.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** policy.py 10 Oct 2004 23:06:08 -0000 1.19
--- policy.py 13 Feb 2005 12:09:35 -0000 1.20
***************
*** 584,588 ****
# This helps you see what 'func' and 'args' actually is
if str(v).find("arguments")>=0:
! print "** TypeError calling function %r(%r)" % (func, args)
raise
--- 584,588 ----
# This helps you see what 'func' and 'args' actually is
if str(v).find("arguments")>=0:
! print "** TypeError %s calling function %r(%r)" % (v, func, args)
raise
|