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

Fix: 修复异常在 traceback 中无法正常显示信息 #1521

Merged
merged 1 commit into from
Dec 31, 2022

Conversation

he0119
Copy link
Member

@he0119 he0119 commented Dec 31, 2022

exception 有自己的 __str__ 方法,默认返回 args。如果要显示 NoneBotException 的 repr 需要覆盖该方法。

@codecov
Copy link

codecov bot commented Dec 31, 2022

Codecov Report

Merging #1521 (62383e2) into master (f0bebb6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1521   +/-   ##
=======================================
  Coverage   86.48%   86.48%           
=======================================
  Files          44       44           
  Lines        3322     3322           
=======================================
  Hits         2873     2873           
  Misses        449      449           
Flag Coverage Δ
unittests 86.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
nonebot/exception.py 89.18% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions
Copy link
Contributor

🚀 Deployed on https://deploy-preview-1521--nonebot2.netlify.app

@github-actions github-actions bot temporarily deployed to pull request December 31, 2022 12:05 Inactive
@yanyongyu yanyongyu merged commit 9b3e670 into master Dec 31, 2022
@yanyongyu yanyongyu deleted the fix/exception-str branch December 31, 2022 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants