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: shell command 包含富文本时报错信息出错 #1923

Merged
merged 2 commits into from
Apr 14, 2023

Conversation

yanyongyu
Copy link
Member

fix #1922

@yanyongyu yanyongyu added the bug Something isn't working label Apr 14, 2023
@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Merging #1923 (993b39c) into master (21eb289) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1923      +/-   ##
==========================================
+ Coverage   88.60%   88.63%   +0.03%     
==========================================
  Files          45       45              
  Lines        3238     3247       +9     
==========================================
+ Hits         2869     2878       +9     
  Misses        369      369              
Flag Coverage Δ
unittests 88.63% <100.00%> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
nonebot/rule.py 97.61% <100.00%> (+0.08%) ⬆️

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-1923--nonebot2.netlify.app

@github-actions github-actions bot temporarily deployed to pull request April 14, 2023 07:59 Inactive
) -> Union[Namespace, T]:
result, argv = self.parse_known_args(args, namespace)
if argv:
msg = gettext("unrecognized arguments: %s")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个gettext。。。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

标准库就是用的gettext

@yanyongyu yanyongyu merged commit 565aba6 into master Apr 14, 2023
@yanyongyu yanyongyu deleted the fix/argparse-error branch April 14, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

Bug: argpraser遇到MessageSegment对象报错
2 participants