Bug : typeError 'in' requies string as left operand, not bytes

Hello,
I use function * [CRM] / [Lead] /[CRM-LEAD-2022-00004]
On this page, I use the function to add “New Event”

But I face with an error Pop Up . Sever Error " typeError ‘in’ requies string as left operand, not bytes"

I search it on the internet, But I think this error relates to Python.
" Are two totally different things and Python does not embrace implicit type conversion
In fact, Python only allows you to use the in operator with a right operand of type string if the left operand is also of type string: "

Prefer link: python - TypeError: 'in <string>' requires string as left operand, not int - Stack Overflow

But I can’t find this code in the project ( I installed erpnext V14)

Can you help me, please?

I think this should be reported on github. Definitely a bug

thank you. I reported on github.

1 Like