bit of logging

This commit is contained in:
Karl Hudgell 2024-09-20 10:09:56 +01:00
parent f4829ade74
commit 375a8261ae

View File

@ -37,7 +37,9 @@ if len(sys.argv) > 1:
update_disc(client, {"type": "album", "id": "EJECT"}) update_disc(client, {"type": "album", "id": "EJECT"})
elif json_str == "PLAY": elif json_str == "PLAY":
control_player(client, "PLAY") control_player(client, "PLAY")
else:
print(f"Can't process {json_str}")
except Exception: except Exception:
print(f"Invalid JSON format: {e}") print(f"Invalid JSON format: {e}")
else: else:
print("No JSON argument passed, running default control_player action.") print("No Command or Track Info Passed")