Don't print debug info for python 2.6

This commit is contained in:
Massimiliano Culpo 2018-12-25 22:13:22 +01:00
parent 16f402a6c0
commit b7619a33c1
No known key found for this signature in database
GPG Key ID: D1ADB1014FF1118C

View File

@ -391,7 +391,12 @@ def make_compiler_list(tags, compiler_versions):
in zip(tags, compiler_versions):
# If we had an error, move to the next element
if error:
try:
# This will fail on Python 2.6 if a non ascii
# character is in the error
tty.debug(error)
except UnicodeEncodeError:
pass
continue
# Skip unknown versions