[pywin32-checkins] /hgroot/pywin32/pywin32: Fix error handling in debug (patch #140)
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2015-04-10 11:01:00
|
changeset 36371c35cf59 in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=36371c35cf59 summary: Fix error handling in debug (patch #140) diffstat: win32/Lib/win32serviceutil.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 955b7db466fe -r 36371c35cf59 win32/Lib/win32serviceutil.py --- a/win32/Lib/win32serviceutil.py Mon Apr 06 01:36:12 2015 -0400 +++ b/win32/Lib/win32serviceutil.py Fri Apr 10 07:00:52 2015 -0400 @@ -619,7 +619,7 @@ try: exeName = LocateSpecificServiceExe(serviceName) except win32api.error, exc: - if exc[0] == winerror.ERROR_FILE_NOT_FOUND: + if exc.winerror == winerror.ERROR_FILE_NOT_FOUND: print "The service does not appear to be installed." print "Please install the service before debugging it." sys.exit(1) |