Traceback (most recent call last):


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/app.py", line 55, in application

response = frappe.handler.handle()


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/handler.py", line 19, in handle

execute_cmd(cmd)


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/handler.py", line 40, in execute_cmd

ret = frappe.call(method, **frappe.form_dict)


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/__init__.py", line 901, in call

return fn(*args, **newargs)


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/desk/form/save.py", line 19, in savedocs

doc.submit()


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 725, in submit

self._submit()


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 714, in _submit

self.save()


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 223, in save

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


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 269, in _save

self.run_post_save_methods()


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 773, in run_post_save_methods

self.run_method("on_submit")


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 651, in run_method

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


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 860, in composer

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


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 843, in runner

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


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 645, in 

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


 "/home/frappe/benches/bench-2017-03-30/apps/erpnext/erpnext/stock/doctype/delivery_note/delivery_note.py", line 197, in on_submit

self.make_gl_entries()


 "/home/frappe/benches/bench-2017-03-30/apps/erpnext/erpnext/controllers/stock_controller.py", line 33, in make_gl_entries

warehouse_account)


 "/home/frappe/benches/bench-2017-03-30/apps/erpnext/erpnext/controllers/stock_controller.py", line 337, in update_gl_entries_after

voucher_obj = frappe.get_doc(voucher_type, voucher_no)


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/__init__.py", line 600, in get_doc

return frappe.model.document.get_doc(arg1, arg2)


 "/home/frappe/benches/bench-2017-03-30/apps/frappe/frappe/model/document.py", line 46, in get_doc

doctype = arg1.get("doctype")
AttributeError: 'NoneType' object has no attribute 'get'`
Traceback (most recent call last):


 "demo.py", line 18, in <module>

t.start()


 "/myapp/venv/lib/python3.7/site-packages/sentry_sdk/integrations/threading.py", line 41, in sentry_start

self.run = _wrap_run(hub_, self.run.__func__)
AttributeError: 'function' object has no attribute '__func__'
