From f3e19863130debac8d6c29470ad4629b8e425a0f Mon Sep 17 00:00:00 2001 From: nex Date: Sun, 12 Nov 2023 22:40:25 +0000 Subject: [PATCH] Fix ollama command --- cogs/other.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/other.py b/cogs/other.py index 355e594..3be259a 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -1945,7 +1945,8 @@ class OtherCog(commands.Cog): lines[chunk["status"]] = (f"{percent}% " f"({completed_gigabytes:.2f}GB/{total_gigabytes:.2f}GB)") else: - lines[chunk["status"]] = chunk["status"] + status = chunk.get("status", chunk.get("error", os.urandom(3).hex())) + lines[status] = status embed.description = "\n".join(f"`{k}`: {v}" for k, v in lines.items()) if (time() - msg.created_at.timestamp()) >= 5: