Traceback (most recent call last):


 "/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):


 "/opt/galaxy/server/lib/galaxy/datatypes/text.py", line 259, in set_meta

for k, v in column['metadata'].items():
AttributeError: 'NoneType' object has no attribute 'items'
