Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Getting attribute for template returning NoneType #181

Description

@TheM0ng00se

An error may be observed from a worker thread:

Traceback (most recent call last):
File "/opt/pyenv/lib/python3.5/site-packages/cinq_scheduler_sqs/init.py", line 345, in execute_worker
worker.run()
File "/opt/pyenv/lib/python3.5/site-packages/cinq_auditor_required_tags/init.py", line 115, in run
self.notify(notifications)
File "/opt/pyenv/lib/python3.5/site-packages/cinq_auditor_required_tags/init.py", line 440, in notify
body_html = tmpl_html.render(data=data)
File "/opt/pyenv/lib/python3.5/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/opt/pyenv/lib/python3.5/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/opt/pyenv/lib/python3.5/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "", line 114, in top-level template code
File "/opt/pyenv/lib/python3.5/site-packages/jinja2/environment.py", line 430, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'None' has no attribute 'account'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions