From a1a87ba9da519f5c257b4a77e8982d7ed08f27c6 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Fri, 10 Apr 2020 16:30:13 +0200 Subject: [PATCH] Can't -> cannot --- cli/teos_cli.py | 2 +- common/cryptographer.py | 2 +- teos/block_processor.py | 2 +- teos/teosd.py | 4 ++-- watchtower-plugin/net/http.py | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/teos_cli.py b/cli/teos_cli.py index d6dd84b..822d788 100644 --- a/cli/teos_cli.py +++ b/cli/teos_cli.py @@ -266,7 +266,7 @@ def post_request(data, endpoint): message = "Can't connect to the Eye of Satoshi's API. Connection timeout" except ConnectionError: - message = "Can't connect to the Eye of Satoshi's API. Server cannot be reached" + message = "Cannot connect to the Eye of Satoshi's API. Server cannot be reached" except (InvalidSchema, MissingSchema, InvalidURL): message = "Invalid URL. No schema, or invalid schema, found ({})".format(endpoint) diff --git a/common/cryptographer.py b/common/cryptographer.py index bec753a..2e733cd 100644 --- a/common/cryptographer.py +++ b/common/cryptographer.py @@ -178,7 +178,7 @@ class Cryptographer: blob = hexlify(blob).decode("utf8") except InvalidTag: - raise EncryptionError("Can't decrypt blob with the provided key", blob=encrypted_blob, key=secret) + raise EncryptionError("Cannot decrypt blob with the provided key", blob=encrypted_blob, key=secret) return blob diff --git a/teos/block_processor.py b/teos/block_processor.py index 7b9ea24..e3fe7eb 100644 --- a/teos/block_processor.py +++ b/teos/block_processor.py @@ -99,7 +99,7 @@ class BlockProcessor: except JSONRPCException as e: tx = None - logger.error("Can't build transaction from decoded data", error=e.error) + logger.error("Cannot build transaction from decoded data", error=e.error) return tx diff --git a/teos/teosd.py b/teos/teosd.py index 7e2bd33..293fe52 100644 --- a/teos/teosd.py +++ b/teos/teosd.py @@ -56,7 +56,7 @@ def main(command_line_conf): bitcoind_feed_params = {k: v for k, v in config.items() if k.startswith("FEED")} if not can_connect_to_bitcoind(bitcoind_connect_params): - logger.error("Can't connect to bitcoind. Shutting down") + logger.error("Cannot connect to bitcoind. Shutting down") elif not in_correct_network(bitcoind_connect_params, config.get("BTC_NETWORK")): logger.error("bitcoind is running on a different network, check conf.py and bitcoin.conf. Shutting down") @@ -65,7 +65,7 @@ def main(command_line_conf): try: secret_key_der = Cryptographer.load_key_file(config.get("TEOS_SECRET_KEY")) if not secret_key_der: - raise IOError("TEOS private key can't be loaded") + raise IOError("TEOS private key cannot be loaded") block_processor = BlockProcessor(bitcoind_connect_params) carrier = Carrier(bitcoind_connect_params) diff --git a/watchtower-plugin/net/http.py b/watchtower-plugin/net/http.py index 4b88a5e..a1d942b 100644 --- a/watchtower-plugin/net/http.py +++ b/watchtower-plugin/net/http.py @@ -26,10 +26,10 @@ def post_request(data, endpoint): return requests.post(url=endpoint, json=data, timeout=5) except ConnectTimeout: - message = "Can't connect to the Eye of Satoshi at {}. Connection timeout".format(endpoint) + message = "Cannot connect to the Eye of Satoshi at {}. Connection timeout".format(endpoint) except ConnectionError: - message = "Can't connect to the Eye of Satoshi at {}. Tower cannot be reached".format(endpoint) + message = "Cannot connect to the Eye of Satoshi at {}. Tower cannot be reached".format(endpoint) except (InvalidSchema, MissingSchema, InvalidURL): message = "Invalid URL. No schema, or invalid schema, found ({})".format(endpoint)