为了能快速了解并处理您的问题,请提供以下基础信息:
11.3
Ubuntu 24.04.3 LTS
docker应用商店大不开
出错了,面板运行时发生错误! AttributeError: 'NoneType' object has no attribute 'get'
REQUEST_DATE: 2025-11-27 10:37:46 VERSION: Ubuntu 24.04.3 LTS (Noble Numbat) aarch64(Py3.7.16) - 11.3.0 REMOTE_ADDR: 未知IP地址 REQUEST_URI: POST /mod/docker/com/get_apps?REQUEST_FORM: {'p': '1', 'row': '200', 'query': '', 'force': '1', 'app_type': 'AI'} USER_AGENT: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0 Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2559, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2506, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/mod/modController.py", line 86, in model result = PluginLoader.module_run("{}/{}".format(module_name, sub_mod_name), def_name, pdata) File "/www/server/panel/mod/project/docker/app/appManageMod.py", line 1569, in get_apps GPUTool.register_app_gpu_option(app) File "/www/server/panel/mod/project/docker/app/gpu/tools.py", line 88, in register_app_gpu_option option, default = cls.__gpu_default_setting() File "/www/server/panel/mod/project/docker/app/gpu/tools.py", line 76, in __gpu_default_setting mem_size = mem_size + _device.get('memory', {}).get('size', 0)AttributeError: 'NoneType' object has no attribute 'get' |
|