mirror of https://github.com/acidanthera/audk.git
BaseTools: Refactor python raise statement
Make "raise" to be compatible with python3. Contributed-under: TianoCore Contribution Agreement 1.1 Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
aaa4c651bf
commit
df29fd130a
|
@ -507,8 +507,8 @@ class Builder:
|
|||
f = open(logFile, "w")
|
||||
f.write(output)
|
||||
f.close()
|
||||
raise Exception, 'Failed to %s %s\n' % (stage, module) + \
|
||||
'See output log at %s' % self.config.Relative(logFile)
|
||||
raise Exception('Failed to %s %s\n' % (stage, module) + \
|
||||
'See output log at %s' % self.config.Relative(logFile))
|
||||
else:
|
||||
print('[done]')
|
||||
|
||||
|
|
Loading…
Reference in New Issue