Skip to content

Commit

Permalink
Merge pull request #24 from ITCraftDevelopmentTeam/bugfix-3
Browse files Browse the repository at this point in the history
fix a bug
  • Loading branch information
This-is-XiaoDeng authored Jan 27, 2024
2 parents 2163898 + 6c9e422 commit 53fd74a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def translate_action_response(_response: dict) -> dict:
async def translate_message_array(_message: list) -> list: # v11 -> v12
if isinstance(_message, str):
message = parse_string_to_array(_message)
# 这样似乎可以解决,Issue #1
elif isinstance(_message, dict):
message = [_message]
else:
message = _message.copy()
i = -1
Expand Down

0 comments on commit 53fd74a

Please sign in to comment.