From 32dd5cfc3f412158e5f4d4391b6ecdb6e2d0b81a Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Fri, 3 Apr 2020 21:57:38 +0200 Subject: [PATCH] Refactors cli to avoid multi-type returns (normal return + None). Adds exceptions for errors. --- cli/teos_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/teos_cli.py b/cli/teos_cli.py index 9b5c1bf..6b0ea7a 100644 --- a/cli/teos_cli.py +++ b/cli/teos_cli.py @@ -263,7 +263,7 @@ def post_request(data, endpoint): return requests.post(url=endpoint, json=data, timeout=5) except Timeout: - message = "Can't connect to the Eye of Satoshi's API. Connection timeout" + message = "Cannot connect to the Eye of Satoshi's API. Connection timeout" except ConnectionError: message = "Cannot connect to the Eye of Satoshi's API. Server cannot be reached"