本帖最后由 宝塔用_bdf2 于 2023-8-18 16:10 编辑
为了能快速了解并处理您的问题,请提供以下基础信息:
windows版7.9.0
windows server 2016
更新到最新版后,点击概览里的安全风险项,过了十几分钟一直没有检查完,刷新后就报错无法打开面板
出错了,面板运行时发生错误!
AttributeError: 'NoneType' object has no attribute 'replace'
REQUEST_DATE: 2023-08-18 15:51:53
PAN_VERSION: 7.9.0
OS_VERSION: Windows Server 2016 Datacenter (build 14393) x64 (Py3.8.6)
REMOTE_ADDR: 27.19.188.90
REQUEST_URI: GET /?
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Traceback (most recent call last):
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Program Files\python\lib\site-packages\flask\_compat.py", line 39, in reraise
raise value
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Program Files\python\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "D:\BtSoft\panel\BTPanel\__init__.py", line 341, in home
data['public_key'] = public.get_rsa_public_key().replace("\n","")
AttributeError: 'NoneType' object has no attribute 'replace'
|
|