TypeError -> ValueError #2002

This commit is contained in:
Thomas Nagy 2017-07-30 00:13:42 +02:00
parent a6f4ad6e1d
commit 88bb8cc6a1
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ def configure(conf):
v.MSVC_COMPILER = compiler
try:
v.MSVC_VERSION = float(version)
except TypeError:
except ValueError:
v.MSVC_VERSION = float(version[:-3])
conf.find_ifort_win32()

View File

@ -806,7 +806,7 @@ def autodetect(conf, arch=False):
v.MSVC_COMPILER = compiler
try:
v.MSVC_VERSION = float(version)
except TypeError:
except ValueError:
v.MSVC_VERSION = float(version[:-3])
def _get_prog_names(conf, compiler):