Commit 80ee0f54 authored by Jason R. Coombs's avatar Jason R. Coombs

Avoid setting a variable when the value is never used.

parent 57f3b022
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment