From 41d2628706a09893e7ee44faf84ae8d9275bab6c Mon Sep 17 00:00:00 2001 From: ionite34 Date: Thu, 1 Dec 2022 19:54:24 +0800 Subject: Fix send_job return type --- bot/exts/utils/snekbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/utils/snekbox.py b/bot/exts/utils/snekbox.py index 1d003fb9a..b8e6476f8 100644 --- a/bot/exts/utils/snekbox.py +++ b/bot/exts/utils/snekbox.py @@ -300,7 +300,7 @@ class Snekbox(Cog): data = job.to_dict() async with self.bot.http_session.post(url, json=data, raise_for_status=True) as resp: - return await resp.json() + return EvalResult.from_dict(await resp.json()) @staticmethod async def upload_output(output: str) -> Optional[str]: -- cgit v1.2.3