This commit is contained in:
Yasir Aris M 2024-07-29 16:26:39 +07:00 committed by GitHub
parent 2437f77786
commit 7e752f577d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -407,7 +407,7 @@ async def cmd_eval(self: Client, ctx: Message, strings) -> Optional[str]:
else await ctx.reply_msg(strings("run_eval"), quote=True)
)
code = (
ctx.text.split(maxsplit=1)[1] if ctx.command else msg.split("\napp.run()")[0]
ctx.text.split(maxsplit=1)[1] if ctx.command else ctx.text.split("\napp.run()")[0]
)
out_buf = io.StringIO()
out = ""