为了能快速了解并处理您的问题,请提供以下基础信息:
系统版本:VERSION: Ubuntu 20.04.6 LTS (Focal Fossa) x86_64(Py3.7.9) - 9.5.0问题描述:
相关截图(日志、错误):REQUEST_DATE: 2025-05-09 21:35:55 VERSION: Ubuntu 20.04.6 LTS (Focal Fossa) x86_64(Py3.7.9) - 9.5.0 REMOTE_ADDR: 222.212.119.117 REQUEST_URI: POST /site?action=GetSecurityREQUEST_FORM: {'id': '1', 'name': 'group.test.mjssj.com'} USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36Traceback (most recent call last): File "/www/server/panel/class/panelSite.py", line 6112, in GetSecurity data['domains'] = ','.join(list(set(re.search("valid_referers\s+none\s+blocked\s+(.+);\n", tmp).groups()[0].split())))AttributeError: 'NoneType' object has no attribute 'groups'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2533, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2480, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/class/panelSite.py", line 6114, in GetSecurity data['domains'] = ','.join(list(set(re.search("valid_referers\s+(.+);\n", tmp).groups()[0].split())))AttributeError: 'NoneType' object has no attribute 'groups'
|
|