已关闭
[Bug-Report|缺陷反馈]: FileManager.read_json_file和read_csv_file函数在读取出错时,没有解释原因 #128
zhangyin_gitcode创建于 2025年10月3日关闭于 2025年10月23日
fanglanyue
2025年10月21日 评论:
2025年10月21日 评论:
开发者您好,感谢您提出的issue,可以rebase一下master分支后将pr合入


zhangyin_gitcode
2025年10月21日 评论:
2025年10月21日 评论:


fanglanyue
2025年10月23日 评论:
2025年10月23日 评论:
pr已合入,关闭issue


2025年10月23日 关联了pull request:在FileManager.read_json_file和read_csv_file函数中解释文件无法读取的原因
2025年10月23日 issue状态由 TODO 改变为 DONE
2025年10月23日 关闭了 issue
1月22日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
FileManager.read_json_file和read_csv_file函数在读取出错时,没有解释原因,只是提示“Failed to read the file:”,其行为与read_yaml_file和read_common_file函数不一致。后两者通过reason is {str(e)}给出了出错的原因。
这些原因对于使用者定位可能的错误非常重要。
Environment / 环境信息 (Mandatory / 必填)
不涉及
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
此文件中的json文件包含错误:https://transfer-devadv.obs.cn-north-4.myhuaweicloud.com/t/vmt4_15662.1759470641376263709.pt.trace.zip
在使用FileManager.read_json_file读取该json文件时,只提示出错,而不提示错误原因,如下:
Describe the expected behavior / 预期结果 (Mandatory / 必填)
应该提示错误原因,如下:
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
请查看上述截图
Special notes for this issue/备注 (Optional / 选填)
此问题关联PR为 https://gitcode.com/Ascend/mstt/pull/5455