Commit 9883669a authored by Manuel Christlieb's avatar Manuel Christlieb

fix: [invalid-name] Variable name doesn't conform to snake_case naming style

parent c2767759
......@@ -85,15 +85,15 @@ class TemplateModule(BaseModule):
'output_file': output_file if output_file else '-',
except jinja2.UndefinedError as e:
except jinja2.UndefinedError as error:
termcolor.cprint('Template could not be rendered (%s), error message' % args.template_file, color='red')
termcolor.cprint(e.message, color='yellow')
termcolor.cprint(error.message, color='yellow')
if output_file:
with open(output_file, 'w') as fh:
with open(output_file, 'w') as file_handle:
except IOError as error:
termcolor.cprint('Template output could not be saved (%s)' % args.output_file, color='red')
termcolor.cprint(str(error), color='yellow')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment