fix(code-quality): 第二批 - B904 raise-without-from 批量修复 (71个) #353
Reference in New Issue
Block a user
Delete Branch "fix/code-quality-b904-batch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
改动说明
修复全部 71 个 B904 (raise-without-from-inside-except) 问题。
修复方式
在
except块内的raise语句后补充from e(或from _e,给没有 as 变量的 except 补上),保留完整异常链信息。风险评估
极低风险:
涉及范围
验证
CI全绿,自动审批通过。