Don't override 'line' from outer scope

This commit is contained in:
Alexander Todorov 2017-10-05 13:14:28 +03:00 committed by Brian C. Lane
parent 78a4e96015
commit ac1623d9cd

View File

@ -250,8 +250,8 @@ class LoraxTemplateRunner(object):
# log the "ErrorType: this is what happened" line
logger.error(" " + exclines[-1].strip())
# and log the entire traceback to the debug log
for line in ''.join(exclines).splitlines():
logger.debug(" " + line)
for _line in ''.join(exclines).splitlines():
logger.debug(" " + _line)
if self.fatalerrors:
raise