diff options
author | 2022-12-01 19:54:24 +0800 | |
---|---|---|
committer | 2022-12-01 19:54:24 +0800 | |
commit | 41d2628706a09893e7ee44faf84ae8d9275bab6c (patch) | |
tree | 020421b6be6c8011ce300f6f01b0ede07227ed1a | |
parent | Reorder imports (diff) |
Fix send_job return type
-rw-r--r-- | bot/exts/utils/snekbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
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]: |