From c839ea2aca25458da989f716522c135ccc5c0da8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 17 Jan 2020 18:29:25 +0100 Subject: [PATCH] Fix cv bug --- royalpack/commands/cv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/royalpack/commands/cv.py b/royalpack/commands/cv.py index b6b98009..9efdeefe 100644 --- a/royalpack/commands/cv.py +++ b/royalpack/commands/cv.py @@ -77,7 +77,8 @@ class CvCommand(Command): activity += f" | 📺 {mact['name']}" # Custom Status elif mact["type"] == 4: - activity += f" | ❓ {mact['state']}" + if "state" in activity: + activity += f" | ❓ {mact['state']}" else: raise ExternalError(f"Unknown Discord activity type: {mact['type']}")