出错了,面板运行时发生错误!
TypeError: object of type 'NoneType' has no len()
REQUEST_DATE: 2023-05-22 10:39:42
PAN_VERSION: 7.9.10
OS_VERSION: Debian GNU/Linux 11 aarch64(Py3.7.16)
REMOTE_ADDR: 154.
REQUEST_URI: POST /project/docker/model?
REQUEST_FORM: {'data': '{"url":"unix:///var/run/docker.sock","dk_model_name":"container","dk_def_name":"get_list"}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2006, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1953, in run
result = getattr(toObject, get.action)(get)
File "class/panelController.py", line 81, in model
result = PluginLoader.module_run(module_name,def_name,pdata)
File "/www/server/panel/class/projectModel/dockerModel.py", line 87, in model
result = run_object(args)
File "/www/server/panel/class/projectModel/bt_docker/dk_container.py", line 415, in get_list
data = self.get_other_data_for_container_list(args)
File "/www/server/panel/class/projectModel/bt_docker/dk_container.py", line 377, in get_other_data_for_container_list
images = di.main().image_list(args)
File "class/projectModel/bt_docker/dk_image.py", line 99, in image_list
if len(attr['RepoTags']) == 1:
TypeError: object of type 'NoneType' has no len() |