Desktop Icon Creation Problem For New Module

I managed to create desktop icon by editing but after that whenever i go to desk from module def list i get this errors.

Traceback (most recent call last):
File “/home/ilex/frappe-bench/apps/frappe/frappe/”, line 56, in application
response = frappe.handler.handle()
File “/home/ilex/frappe-bench/apps/frappe/frappe/”, line 21, in handle
data = execute_cmd(cmd)
File “/home/ilex/frappe-bench/apps/frappe/frappe/”, line 52, in execute_cmd
return, **frappe.form_dict)
File “/home/ilex/frappe-bench/apps/frappe/frappe/”, line 914, in call
return fn(*args, **newargs)
File “/home/ilex/frappe-bench/apps/frappe/frappe/desk/”, line 14, in get
data = get_data(module)
File “/home/ilex/frappe-bench/apps/frappe/frappe/desk/”, line 30, in get_data
data = build_config_from_file(module)
File “/home/ilex/frappe-bench/apps/frappe/frappe/desk/”, line 54, in build_config_from_file
data += get_config(app, module)
File “/home/ilex/frappe-bench/apps/frappe/frappe/desk/”, line 184, in get_config
config = config.get_data()
File “/home/ilex/frappe-bench/apps/erpnext/erpnext/config/”, line 125, in get_data
add_setup_section(data, “erpnext”, module, label, icon)
File “/home/ilex/frappe-bench/apps/frappe/frappe/desk/”, line 198, in add_setup_section
setup_section = get_setup_section(app, module, label, icon)
File “/home/ilex/frappe-bench/apps/frappe/frappe/desk/”, line 206, in get_setup_section
config = get_config(app, module)
File “/home/ilex/frappe-bench/apps/frappe/frappe/desk/”, line 187, in get_config
for item in section[“items”]:
TypeError: string indices must be integers

I deleted all the doctypes and new modules. then also i am getting this error.

Thank You.

Can you remove it from .py file and add using Add to Desktop icon in the Menu item in list and report? Please further elaborate your use-case.

I tried this but it dont show them on desktop.
On desktop i am able to see those icons whose doctype was predefined in ERPNext

I was just trying to put an custom icon on the desk.
So for that i made doctypes PurchaseSlip.
and then i was trying to get icon for this.

Once I had made a module named as CustomModule. bt it also not displayed on desk.