Checkvalue bug

This commit is contained in:
Zhuoran Han 2018-05-16 14:54:24 -04:00
parent 6fa9b02b4d
commit 4c5bdd4438

View file

@ -265,7 +265,7 @@ def check_filetype_version(obj, expected_type, expected_version):
if this_version[0] != expected_version:
raise IOError('{} file has a version of {} which is not '
'consistent with the version expected by OpenMC, {}'
.format(this_filetype, '.'.join(this_version),
.format(this_filetype, '.'.join(str(v) for v in this_version),
expected_version))
except AttributeError:
raise IOError('Could not read {} file. This most likely means the {} '