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
|
# log the "ErrorType: this is what happened" line
|
||||||
logger.error(" " + exclines[-1].strip())
|
logger.error(" " + exclines[-1].strip())
|
||||||
# and log the entire traceback to the debug log
|
# and log the entire traceback to the debug log
|
||||||
for line in ''.join(exclines).splitlines():
|
for _line in ''.join(exclines).splitlines():
|
||||||
logger.debug(" " + line)
|
logger.debug(" " + _line)
|
||||||
if self.fatalerrors:
|
if self.fatalerrors:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user