AttributeError on saving new doc [Note]


I am running a local frappe VM just to play around a little bit. I use VS Code with remote plugin.

I am on Frappe Framework: v13.12.1 (version-13)
No ERPNext installed.

I simply want to create a Note. Whenever I hit the save button I receive the below error.
However, the Note is still stored.

Is this a known problem? Or is my installation corrupt?


Ausnahme: AttributeError (note: full exception trace is shown but execution is paused at: getattr)
exception: no description
File “/home/dominik/bench1/apps/frappe/frappe/”, line 50, in getattr (Current frame)
raise AttributeError()
File “/home/dominik/bench1/apps/frappe/frappe/model/”, line 23, in get_new_doc
doc = copy.deepcopy(frappe.local.new_doc_templates[doctype])
File “/home/dominik/bench1/apps/frappe/frappe/”, line 811, in new_doc
return get_new_doc(doctype, parent_doc, parentfield, as_dict=as_dict)
File “/home/dominik/bench1/apps/frappe/frappe/model/”, line 682, in _set_defaults
new_doc = frappe.new_doc(self.doctype, as_dict=True)
File “/home/dominik/bench1/apps/frappe/frappe/model/”, line 227, in insert
File “/home/dominik/bench1/apps/frappe/frappe/model/”, line 307, in _save
File “/home/dominik/bench1/apps/frappe/frappe/model/”, line 285, in save
return self._save(*args, **kwargs)
File “/home/dominik/bench1/apps/frappe/frappe/”, line 212, in save
File “/home/dominik/bench1/apps/frappe/frappe/”, line 1199, in call
return fn(*args, **newargs)
File “/home/dominik/bench1/apps/frappe/frappe/”, line 67, in execute_cmd
return, **frappe.form_dict)
File “/home/dominik/bench1/apps/frappe/frappe/”, line 31, in handle
data = execute_cmd(cmd)
File “/home/dominik/bench1/apps/frappe/frappe/”, line 55, in handle
return frappe.handler.handle()
File “/home/dominik/bench1/apps/frappe/frappe/”, line 68, in application
response = frappe.api.handle()
File “/home/dominik/bench1/apps/frappe/frappe/”, line 16, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/home/dominik/bench1/apps/frappe/frappe/”, line 326, in serve
run_simple(‘’, int(port), application,
File “/home/dominik/bench1/apps/frappe/frappe/commands/”, line 676, in serve, profile=profile, no_reload=no_reload, no_threading=no_threading, site=site, sites_path=‘.’)
File “/home/dominik/bench1/apps/frappe/frappe/commands/”, line 27, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/dominik/bench1/apps/frappe/frappe/utils/”, line 19, in main
File “/home/dominik/bench1/apps/frappe/frappe/utils/”, line 104, in

I am also getting this error in a new bench that I created for testing. The doctypes are again stored regularly.

Without debugging I wouldn’t even notice…

Is this an intended behavior?