Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[优化建议] 对 except 后的 continue 语句添加错误输出 #232

Closed
This-is-XiaoDeng opened this issue Sep 22, 2024 · 1 comment · Fixed by #322
Closed

[优化建议] 对 except 后的 continue 语句添加错误输出 #232

This-is-XiaoDeng opened this issue Sep 22, 2024 · 1 comment · Fixed by #322
Assignees
Labels
· 优化 对已有功能的小幅度修改。

Comments

@This-is-XiaoDeng
Copy link
Member

描述

Moonlark 中存在部分这种结构的代码:

while True:
    try:
        ...
    except:
        continue

try:
    ...
except:
    pass

对这些语句添加 logger.warning(traceback.format_exc()) 进行异常记录,而不是直接忽略。

原因

图片

图片

@This-is-XiaoDeng This-is-XiaoDeng added the · 优化 对已有功能的小幅度修改。 label Sep 22, 2024
Copy link

您好 @This-is-XiaoDeng
感谢您参与 Moonlark 项目,我们会尽快回复您,请留意 GitHub 上的通知。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· 优化 对已有功能的小幅度修改。
Projects
None yet
4 participants