为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:回收站 删除文件报错,清空回收站功能正常,只能单独删一个 或 批量删除时 报错
相关截图(日志、错误): TypeError: 'OperationalError' object is not iterable
REQUEST_DATE: 2024-07-23 00:14:06 VERSION: CentOS 7.9.2009 x86_64(Py3.7.9) - 9.1.0 REMOTE_ADDR: 192.168.31.191 REQUEST_URI: POST /files?action=Del_Recycle_bin_newREQUEST_FORM: {'path': '_bt_home_bt_data2_20240722235608.bak_t_1721664554.801162'} USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2431, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2378, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/class/files.py", line 1935, in Del_Recycle_bin_new db_list = [j for i in database.GetDatabaseList(public.to_dict_obj({'id': 0})) for j in i] if not force else []TypeError: 'OperationalError' object is not iterable
|
|