Update of /cvsroot/pywin32/pywin32/win32/scripts/VersionStamp
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28610/win32/scripts/VersionStamp
Modified Files:
bulkstamp.py
Log Message:
Move to exception attributes
Index: bulkstamp.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/scripts/VersionStamp/bulkstamp.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** bulkstamp.py 4 Dec 2008 03:38:20 -0000 1.9
--- bulkstamp.py 11 Dec 2008 05:13:07 -0000 1.10
***************
*** 64,69 ****
verstamp.stamp(vars, pathname, desc, is_dll=is_dll)
numStamped = numStamped + 1
! except win32api.error, (hr, func, desc):
! print "Could not stamp", pathname, "Error", hr, "-", desc
else:
print 'WARNING: description not provided for:', name
--- 64,69 ----
verstamp.stamp(vars, pathname, desc, is_dll=is_dll)
numStamped = numStamped + 1
! except win32api.error, exc:
! print "Could not stamp", pathname, "Error", exc.winerror, "-", exc.strerror
else:
print 'WARNING: description not provided for:', name
|