diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-02-23 21:10:07 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-02-23 21:10:07 -0500 |
| commit | 80ee0f54d4408fac616ae12b7dd60b6c514f98d3 (patch) | |
| tree | 1f58c2007d223c08e310e44e622bb061108aa651 /setuptools/msvc9_support.py | |
| parent | 57f3b022aa3054e7ea281091d782292d5895086c (diff) | |
| download | python-setuptools-git-80ee0f54d4408fac616ae12b7dd60b6c514f98d3.tar.gz | |
Avoid setting a variable when the value is never used.
Diffstat (limited to 'setuptools/msvc9_support.py')
| -rw-r--r-- | setuptools/msvc9_support.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/msvc9_support.py b/setuptools/msvc9_support.py index 85a8cf44..e1e08414 100644 --- a/setuptools/msvc9_support.py +++ b/setuptools/msvc9_support.py @@ -59,12 +59,12 @@ def query_vcvarsall(version, arch='x86', *args, **kwargs): # Try to get environement from vcvarsall.bat (Classical way) try: return unpatched['query_vcvarsall'](version, arch, *args, **kwargs) - except distutils.errors.DistutilsPlatformError as exc: + except distutils.errors.DistutilsPlatformError: # Error if Vcvarsall.bat is missing - message = exc.args[0] - except ValueError as exc: + pass + except ValueError: # Error if environment not set after executing vcvarsall.bat - message = exc.args[0] + pass # If vcvarsall.bat fail, try to set environment directly try: |
