出错了,面板运行时发生错误!
TypeError: object of type 'NoneType' has no len()
REQUEST_DATE: 2023-05-19 08:49:10
PAN_VERSION: 7.9.10
OS_VERSION: Ubuntu 22.04.2 LTS x86_64(Py3.7.8)
REMOTE_ADDR: 114.243.98.193
REQUEST_URI: POST /project/docker/model?
REQUEST_FORM: {'data': '{"url":"unix:///var/run/docker.sock","dk_model_name":"image","dk_def_name":"image_list"}'}
USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.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 "/www/server/panel/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_image.py", line 99, in image_list
if len(attr['RepoTags']) == 1:
TypeError: object of type 'NoneType' has no len()
ubuntu server 更新以后就有这个问题 |