Merge "Avoid error if logFile is not defined"

This commit is contained in:
Jenkins 2016-11-18 20:01:15 +00:00 committed by Gerrit Code Review
commit c8bcc3203e

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: