为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:点击网站1.sxjfw.com防盗链就报错: 出错了,面板运行时发生错误!AttributeError: 'NoneType' object has no attribute 'groups'
相关截图(日志、错误):REQUEST_DATE: 2025-09-27 17:02:24 PAN_VERSION: 7.9.0 OS_VERSION: CentOS 7.5.1804 x86_64(Py3.7.9) REMOTE_ADDR: 113.248.32.221 REQUEST_URI: POST /site?action=GetSecurityREQUEST_FORM: {'id': '13', 'name': '1.sxjfw.com'} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36Traceback (most recent call last): File "class/panelSite.py", line 4830, 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 1756, in publicObject return run_exec().run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 1704, in run result = getattr(toObject,get.action)(get) File "class/panelSite.py", line 4832, in GetSecurity data['domains'] = ','.join(list(set(re.search("valid_referers\s+(.+);\n",tmp).groups()[0].split())))AttributeError: 'NoneType' object has no attribute 'groups'
|
|