From ac1623d9cdc6ed0f11336add0f17dd6a57309f0f Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Thu, 5 Oct 2017 13:14:28 +0300 Subject: [PATCH] Don't override 'line' from outer scope --- src/pylorax/ltmpl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pylorax/ltmpl.py b/src/pylorax/ltmpl.py index 293258fe..e09fefdc 100644 --- a/src/pylorax/ltmpl.py +++ b/src/pylorax/ltmpl.py @@ -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