出错了,面板运行时发生错误!AttributeError: 'bool' object has no attribute 'strip'
REQUEST_DATE: 2025-01-17 10:35:15 VERSION: 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[rule.endpoint])(**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' |
|