scripts icon indicating copy to clipboard operation
scripts copied to clipboard

apply_corrections.py: TypeError: must be string without null bytes, not str

Open ghost opened this issue 9 years ago • 3 comments

02:21:52 =!= python: wrong arguments for function "prnt_date_tags" (script: apply_corrections)
02:21:52 python: stdout/stderr: Traceback (most recent call last):
02:21:52 python: stdout/stderr:   File "/home/nyuszika7h/.weechat/python/autoload/apply_corrections.py", line 270, in handle_message_cb
02:21:52 python: stdout/stderr:     for cm in get_corrected_messages(nick, log, correction):
02:21:52 python: stdout/stderr: TypeError: must be string without null bytes, not str
02:21:52 =!= python: error in function "handle_message_cb"

I'm not sure which message caused this.

ghost avatar Jan 25 '17 11:01 ghost

Did you try to reach the author of script? Bugs reported on this repository are rarely fixed since the script author is not informed about the issue (except for my scripts).

flashcode avatar Jan 25 '17 18:01 flashcode

Sorry, I never saw this. I didn't think to look here for bugs. After a quick google it looks like maybe I'm not escaping things correctly somewhere and a \0 got through without the \ getting escaped. I'll look into it soon. @flashcode Should I open an issue on my repo so you can close this one?

johnson-christopher avatar Jun 21 '18 19:06 johnson-christopher

Yes if you open an issue, please mention it there, and I'll close this one.

flashcode avatar Jun 21 '18 20:06 flashcode