Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
File "./j4hr/report.py", line 15, in make_report
if 'api' in report:
TypeError: argument of type 'NoneType' is not iterable
19:33:26 argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./j4hr/report.py", line 15, in make_report
if 'api' in report:
TypeError: argument of type 'NoneType' is not iterable
19:33:26 TypeError: 'NoneType' object does not support item assignment
Traceback (most recent call last):
File "/srv/webapps/prod/j4hr/local/lib/python2.7/site-packages/rq/worker.py", line 429, in perform_job
rv = job.perform()
File "/srv/webapps/prod/j4hr/local/lib/python2.7/site-packages/rq/job.py", line 348, in perform
self._result = self.func(*self.args, **self.kwargs)
File "./j4hr/report.py", line 21, in make_report
report['errors'] = [e.message]
TypeError: 'NoneType' object does not support item assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment