fix: 编号进度被拒绝访问时继续下载

This commit is contained in:
2026-10-25 08:53:15 +08:00
parent 69c7df85d3
commit e99a112965
4 changed files with 68 additions and 7 deletions
+2
View File
@@ -20,6 +20,8 @@ def explain_os_error(exc: BaseException) -> str | None:
errno = getattr(exc, "errno", None)
if winerror in {32, 33} or errno in {32, 33}:
return "文件被占用,请先关闭 Excel 等程序"
if winerror == 5 or errno == 13:
return "文件被拒绝访问"
if winerror in {112, 28} or errno in {112, 28}:
return "磁盘空间不足"
return None