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

Getting attribute for template returning NoneType #181

Open
TheM0ng00se opened this issue Aug 13, 2018 · 2 comments
Open

Getting attribute for template returning NoneType #181

TheM0ng00se opened this issue Aug 13, 2018 · 2 comments

Comments

@TheM0ng00se
Copy link
Contributor

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'

@laf-rge
Copy link

laf-rge commented Aug 27, 2018

we see a lost connection to the database around this time in the logs as well.

@TheM0ng00se
Copy link
Contributor Author

Also seems to follow this error:

cinq_scheduler_sqs Failed processing scheduler job: {"entry_point": {"module_name": "cinq_auditor_required_tags", "name": "auditor_required_tags", "attrs": ["RequiredTagsAuditor"]}, "job_name": "ea1352436c3dbbc9900a48923acd429c3e8ca47a2c033bcc5bd1079dcd72ec32", "batch_id": "6bc71803-0739-45f6-946f-88984ce873c5", "job_id": "c6a76cfd-d75d-4706-b8f7-1a2f9dba9369", "worker_args": {}}
Traceback (most recent call last):

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants