------------------------…

------------------------…



------------------------------------------------------------------------------------------------------------------------
555 process_update dispatcher.py
> handler.handle_update(update, self, check, context)

---

110 handle_update handlers.py
> return self.callback(update, context)

---

282 character anime.py
> description = re.sub(r"~!([\s\S]+?)!~", lambda i: re.sub("\\S", "█", i.group(1)), json["description"])

---

210 sub re.py
> return _compile(pattern, flags).sub(repl, string, count)

TypeError:
expected string or bytes-like object

-------------------------------------------------------------------------------
An exception was raised while handling an update
User: 1286139569
Chat: [🅢🅟🅐🅜] -1001564662300
Callback data: None
Message: /character yuusuke yotsuya

Full Traceback: Traceback (most recent call last):
File "E:\SaitamaRobot\env\lib\site-packages\telegram\ext\dispatcher.py", line 555, in process_update
handler.handle_update(update, self, check, context)
File "E:\Mob\SaitamaRobot\modules\helper_funcs\handlers.py", line 110, in handle_update
return self.callback(update, context)
File "E:\Mob\SaitamaRobot\modules\anime.py", line 282, in character
description = re.sub(r"~!([\s\S]+?)!~", lambda i: re.sub("\\S", "█", i.group(1)), json["description"])
File "C:\Program Files\Python38\lib\re.py", line 210, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object

Report Page