Getting this exception "KeyError: 'Module_Name'" while using custom print format

Getting this exception “KeyError: ‘Module_Name’” while using custom print format.

App Versions

{
	"frappe": "13.58.3",
	"lms": "0.0.1",
	"wiki": "0.0.1"
}

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 66, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 38, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 76, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1474, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/www/printview.py", line 272, in get_html_and_style
    settings=frappe.parse_json(settings),
  File "apps/frappe/frappe/www/printview.py", line 163, in get_rendered_template
    template = get_template_from_string()
  File "apps/frappe/frappe/www/printview.py", line 160, in get_template_from_string
    return jenv.from_string(get_print_format(doc.doctype, print_format))
  File "apps/frappe/frappe/www/printview.py", line 358, in get_print_format
    frappe.db.get_value("DocType", doctype, "module"), "Print Format", print_format.name
  File "apps/frappe/frappe/modules/utils.py", line 198, in get_doc_path
    return os.path.join(get_module_path(module), dt, dn)
  File "apps/frappe/frappe/modules/utils.py", line 193, in get_module_path
    return frappe.get_module_path(module)
  File "apps/frappe/frappe/__init__.py", line 1225, in get_module_path
    return get_pymodule_path(local.module_app[module] + "." + module, *joins)
KeyError: 'module_name'

### Response Data

{
“exception”: “KeyError: ‘module_name’”
}