Don't override 'line' from outer scope
This commit is contained in:
parent
78a4e96015
commit
ac1623d9cd
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user