Merge "Avoid error if logFile is not defined" into stable/newton

This commit is contained in:
Jenkins 2016-11-24 15:04:19 +00:00 committed by Gerrit Code Review
commit a12b17c3b3
1 changed files with 4 additions and 1 deletions

View File

@ -1017,7 +1017,10 @@ def main():
except Exception as e:
logging.error(traceback.format_exc())
print("\n" + utils.color_text("ERROR : " + str(e), 'red'))
print(output_messages.ERR_CHECK_LOG_FILE_FOR_MORE_INFO % (logFile))
try:
print(output_messages.ERR_CHECK_LOG_FILE_FOR_MORE_INFO % (logFile))
except NameError:
pass
sys.exit(1)
finally: