variable referenced before assignment (#2252)

This commit is contained in:
Massimiliano Culpo 2016-11-05 18:15:29 +01:00 committed by Todd Gamblin
parent a260e7e860
commit 1bef2b7e98

View File

@ -390,8 +390,10 @@ def _proper_compiler_style(cspec, arch):
c for c in matches
if _proper_compiler_style(c, spec.architecture)).copy()
except StopIteration:
raise UnavailableCompilerVersionError(spec.compiler,
arch.platform_os)
raise UnavailableCompilerVersionError(
spec.compiler, spec.architecture.platform_os
)
assert(spec.compiler.concrete)
return True # things changed.