From 375a8261ae7da1a67f6f35f7cdc92557b5ff43fd Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Fri, 20 Sep 2024 10:09:56 +0100 Subject: [PATCH] bit of logging --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 39c3c83..d60015d 100644 --- a/main.py +++ b/main.py @@ -37,7 +37,9 @@ if len(sys.argv) > 1: update_disc(client, {"type": "album", "id": "EJECT"}) elif json_str == "PLAY": control_player(client, "PLAY") + else: + print(f"Can't process {json_str}") except Exception: print(f"Invalid JSON format: {e}") else: - print("No JSON argument passed, running default control_player action.") \ No newline at end of file + print("No Command or Track Info Passed") \ No newline at end of file