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:
@ -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]')
|
||||
|
||||
|
Reference in New Issue
Block a user