Update of /cvsroot/pywin32/pywin32/win32/Demos/security
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25309/win32/Demos/security
Modified Files:
GetTokenInformation.py
Log Message:
Use exception attributes
Index: GetTokenInformation.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/security/GetTokenInformation.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** GetTokenInformation.py 27 Nov 2008 04:15:21 -0000 1.2
--- GetTokenInformation.py 27 Nov 2008 11:16:30 -0000 1.3
***************
*** 48,52 ****
print 'TokenElevation:', is_elevated
except pywintypes.error, details:
! if details[0] != winerror.ERROR_INVALID_PARAMETER:
raise
return None
--- 48,52 ----
print 'TokenElevation:', is_elevated
except pywintypes.error, details:
! if details.winerror != winerror.ERROR_INVALID_PARAMETER:
raise
return None
|