Skip to content

修复 ga.py 和 agentmain.py 中剩余的裸 except 子句#516

Open
Kailigithub wants to merge 1 commit into
lsdefine:mainfrom
Kailigithub:fix/remaining-e722-ga-agentmain
Open

修复 ga.py 和 agentmain.py 中剩余的裸 except 子句#516
Kailigithub wants to merge 1 commit into
lsdefine:mainfrom
Kailigithub:fix/remaining-e722-ga-agentmain

Conversation

@Kailigithub
Copy link
Copy Markdown
Contributor

修复 ga.py 和 agentmain.py 中剩余的裸 except 子句,降低异常捕获粒度过粗带来的潜在运行时风险。

修改内容:

  • ga.py: 替换 stream_reader、log_memory_access、do_code_run、do_web_execute_js、_check_plan_completion 中的 bare except
  • agentmain.py: 替换 reload_llmclients 中的 bare except

本地验证:ruff check --select E722 ga.py agentmain.py 通过,语法检查通过

修改内容:
- ga.py: 替换 stream_reader、log_memory_access、do_code_run、do_web_execute_js、_check_plan_completion 中的 bare except
- agentmain.py: 替换 reload_llmclients 中的 bare except

本地验证:ruff check --select E722 ga.py agentmain.py 通过,语法检查通过
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant