Repository navigation
fix(v12/file): 修正 get_file_name_by_id 中 ffile_list_path 拼写错误 - #139
Merged
Merged
Conversation
issue #138: sending an image via send_msg raised NameError: name 'ffile_list_path' is not defined, so meme_manager/Astrbot image sending failed with retcode 20002. Add a regression test covering file id lookup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复
close #138
actions/v12/file.py中get_file_name_by_id()把file_list_path()误写成ffile_list_path(),导致 OneBot V12 发送图片(如 Astrbot 表情包管理器经send_msg发 image)时抛NameError,返回 retcode 20002。测试
新增
tests/test_file_action.py两个回归用例:None。修复前该测试以
NameError: name 'ffile_list_path' is not defined失败,修复后通过。