Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
18:44:30 default: j4hr.report.make_report('538c94472567a50f448d2283') (38bd253c-6736-4df1-ba36-a809ace69473)
--------------------------------------------------------------------------------
ERROR in report [./j4hr/report.py:20]:
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
18:44:31 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
18:44:31 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