From 8e9b9fafe36f13369ab2db3b3fbdeb0ea144b8b0 Mon Sep 17 00:00:00 2001 From: Bridget Date: Tue, 14 Apr 2020 00:29:32 +0200 Subject: [PATCH] Improve error messages --- lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.py b/lib.py index 83b5968..dd88d26 100644 --- a/lib.py +++ b/lib.py @@ -54,7 +54,7 @@ def connect(url: str, secret_key: str) -> str: Returns the UUID of the endpoint.""" uuid = send_cmd(url, secret_key, "connect").get("uuid", None) if not uuid: - raise InvalidResponseError("Error: Endpoint did not return its UUID") + raise InvalidResponseError("Endpoint did not return its UUID") return uuid @@ -77,6 +77,6 @@ def get_available_commands(url: str, secret_key: str) -> Dict: """Get a list of available commands from the endpoint.""" cmds = send_cmd(url, secret_key, "get_commands").get("available_commands", None) if not cmds: - raise InvalidResponseError("Error: Endpoint did not return command list") + raise InvalidResponseError("Endpoint did not return command list") return cmds