summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-01-08 09:51:20 -0600
committerGitHub <noreply@github.com>2021-01-08 09:51:20 -0600
commit3dbf5ce5fdbc996e8abb6929a219689cf8c18e69 (patch)
tree981d610f11bf67ce05904f160df2c5031d96a268 /numpy
parent73fe877ff967f279d470b81ad447b9f3056c1335 (diff)
parent86cd3582c0e9101ac40434ae4488abdab1c1c910 (diff)
downloadnumpy-3dbf5ce5fdbc996e8abb6929a219689cf8c18e69.tar.gz
Merge pull request #18109 from PhanatosZou/chain-exceptions
MAINT: Fix exception cause in mingw32ccompiler.py
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/mingw32ccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index 3358695a8..4681d403b 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -566,7 +566,7 @@ def msvc_manifest_xml(maj, min):
fullver = _MSVCRVER_TO_FULLVER[str(maj * 10 + min)]
except KeyError:
raise ValueError("Version %d,%d of MSVCRT not supported yet" %
- (maj, min))
+ (maj, min)) from None
# Don't be fooled, it looks like an XML, but it is not. In particular, it
# should not have any space before starting, and its size should be
# divisible by 4, most likely for alignment constraints when the xml is