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

decode error #6

Open
Werneror opened this issue Oct 31, 2022 · 1 comment
Open

decode error #6

Werneror opened this issue Oct 31, 2022 · 1 comment

Comments

@Werneror
Copy link

If the output of the command contains illegal characters(for example, Chinese characters), decode will fail. c2c.py will not receive the message and will be stuck. So you should add the argument errors="ignore" when decoding the command output in payload.py.

@Werneror
Copy link
Author

By the way, it seems that in payload.py, the except branch should not just have a pass statement, but should send an error message to c2c.py, otherwise c2c.py will get stuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant