Commit 20d6c6c2 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Extract variable for exceptions to provide explanation

parent 300c8802
......@@ -45,9 +45,18 @@ else:
safe_env = dict()
_msvc9_suppress_errors = (
# msvc9compiler isn't available on some platforms
ImportError,
# msvc9compiler raises DistutilsPlatformError in some
# environments. See #1118.
distutils.errors.DistutilsPlatformError,
)
try:
from distutils.msvc9compiler import Reg
except (ImportError, distutils.errors.DistutilsPlatformError):
except _msvc9_suppress_errors:
pass
......
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