LCTT / LCTT/LCBot

管理员使用移出功能报错

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
422
Forks
117
PR merge metrics
No merged PRs in 30d

Description

An error occurred in <function wxpy_group at 0x0000000003661048>. Traceback (most recent call last): File "E:\python3\lib\site-packages\wxpy\api\bot.py", line 418, in process ret = config.func(msg) File "bot.py", line 168, in wxpy_group ret_msg = remote_kick(msg) File "bot.py", line 96, in remote_kick if not from_admin(msg): File "bot.py", line 84, in from_admin print(admins) File "E:\python3\lib\encodings\cp437.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 10-11: character maps to <undefined>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect bot.py at from_admin (line 84) and follow the wxpy_group/remote_kick path shown in the traceback. Reproduce the administrator removal action in the reported environment and verify that it completes without the UnicodeEncodeError from printing admins.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.