Traceback (most recent call last):


 "C:\Mylar\cherrypy\_cprequest.py", line 645, in respond


 "C:\Mylar\cherrypy\lib\encoding.py", line 188, in __call__


 "C:\Mylar\cherrypy\_cpdispatch.py", line 29, in __call__


 "C:\Mylar\mylar\webserve.py", line 3321, in MassWeeklyDownload

issuelist = helpers.listIssues(pulldate['weeknumber'],pulldate['year'])
TypeError: string indices must be integers

Traceback (most recent call last):


 "/home/ubuntu/xlevel/apps/frappe/frappe/app.py", line 61, in application

response = frappe.handler.handle()


 "/home/ubuntu/xlevel/apps/frappe/frappe/handler.py", line 21, in handle

data = execute_cmd(cmd)


 "/home/ubuntu/xlevel/apps/frappe/frappe/handler.py", line 56, in execute_cmd

return frappe.call(method, **frappe.form_dict)


 "/home/ubuntu/xlevel/apps/frappe/frappe/__init__.py", line 1027, in call

return fn(*args, **newargs)


 "/home/ubuntu/xlevel/apps/frappe/frappe/desk/form/save.py", line 19, in savedocs

doc.submit()


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 848, in submit

self._submit()


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 837, in _submit

self.save()


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 260, in save

return self._save(*args, **kwargs)


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 313, in _save

self.run_post_save_methods()


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 908, in run_post_save_methods

self.run_method("on_submit")


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 772, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 1048, in composer

return composed(self, method, *args, **kwargs)


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 1031, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 766, in <lambda>

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/home/ubuntu/xlevel/apps/erpnext/erpnext/manufacturing/doctype/work_order/work_order.py", line 226, in on_submit

self.create_job_card()


 "/home/ubuntu/xlevel/apps/erpnext/erpnext/manufacturing/doctype/work_order/work_order.py", line 245, in create_job_card

create_job_card(self, row, auto_create=True)


 "/home/ubuntu/xlevel/apps/erpnext/erpnext/manufacturing/doctype/work_order/work_order.py", line 694, in create_job_card

doc.insert()


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 222, in insert

self.run_before_save_methods()


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 876, in run_before_save_methods

self.run_method("validate")


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 772, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 1048, in composer

return composed(self, method, *args, **kwargs)


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 1031, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/home/ubuntu/xlevel/apps/frappe/frappe/model/document.py", line 766, in <lambda>

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/home/ubuntu/xlevel/apps/erpnext/erpnext/manufacturing/doctype/job_card/job_card.py", line 14, in validate

self.validate_time_logs()


 "/home/ubuntu/xlevel/apps/erpnext/erpnext/manufacturing/doctype/job_card/job_card.py", line 21, in validate_time_logs

for d in self.get('time_logs'):
TypeError: 'NoneType' object is not iterable