yuxin32 发表于 4 天前

【待反馈】AttributeError: 'bool' object has no attribute 'strip'

出错了,面板运行时发生错误!AttributeError: 'bool' object has no attribute 'strip'
REQUEST_DATE: 2025-01-17 10:35:15VERSION: OpenCloudOS 9.2 x86_64(Py3.7.9) - 9.4.0 REMOTE_ADDR: 111.162.118.111 REQUEST_URI: GET /?REQUEST_FORM: {}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36Traceback (most recent call last):File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request    rv = self.dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request    return self.ensure_sync(self.view_functions)(**view_args)File "/www/server/panel/BTPanel/__init__.py", line 540, in home    comReturn = comm.local()File "class/common.py", line 94, in local    self.GetOS()File "class/common.py", line 316, in GetOS    tmp['osname'] = self.get_osname(redhat_release)File "class/common.py", line 334, in get_osname    issue_str = public.ReadFile(i_file).strip()AttributeError: 'bool' object has no attribute 'strip'

堡塔运维南一 发表于 4 天前

您好,这是什么情况下触发的报错
修复一下面板可以解决吗

yuxin32 发表于 4 天前

不能解决,装了宝塔waf,过了一小时左右就这样了
试了之前的方法还是不行。重启服务器也不行

yuxin32 发表于 昨天 10:28

网管大大帮忙解决一下

yuxin32 发表于 昨天 13:07

没有人回复一下吗
页: [1]
查看完整版本: 【待反馈】AttributeError: 'bool' object has no attribute 'strip'