I'm getting this error while listing the domain on the mail server. Please help.

Something went wrong, an error occurred while running [Mail Server]!
TypeError: string indices must be integers, not 'str'
REQUEST_DATE: 2025-06-03 19:27:04
PAN_VERSION: 7.0.20
OS_VERSION: Ubuntu 22.04.5 LTS aarch64(Py3.12.3)
REMOTE_ADDR: 103.46.195.113
REQUEST_URI: POST /v2/plugin%3Faction%3Da%26amp%3Bname%3Dmail_sys%26amp%3Bs%3Dget_domain_name
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/class_v2/panel_plugin_v2.py", line 2365, in a
return public.run_plugin_v2(get.name, get.s, get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class/public/common.py", line 8770, in run_plugin_v2
raise PanelError(res['msg'])
public.exceptions.PanelError: An error occurred while the panel was running: Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 910, in get_domain_name
data_list = [item for item in data_list if item['domain'] not in user_domain_list]
TypeError: string indices must be integers, not 'str'