Can't -> cannot

This commit is contained in:
Sergi Delgado Segura
2020-04-10 16:30:13 +02:00
parent a427b12799
commit a1a87ba9da
5 changed files with 7 additions and 7 deletions

View File

@@ -266,7 +266,7 @@ def post_request(data, endpoint):
message = "Can't connect to the Eye of Satoshi's API. Connection timeout" message = "Can't connect to the Eye of Satoshi's API. Connection timeout"
except ConnectionError: 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): except (InvalidSchema, MissingSchema, InvalidURL):
message = "Invalid URL. No schema, or invalid schema, found ({})".format(endpoint) message = "Invalid URL. No schema, or invalid schema, found ({})".format(endpoint)

View File

@@ -178,7 +178,7 @@ class Cryptographer:
blob = hexlify(blob).decode("utf8") blob = hexlify(blob).decode("utf8")
except InvalidTag: 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 return blob

View File

@@ -99,7 +99,7 @@ class BlockProcessor:
except JSONRPCException as e: except JSONRPCException as e:
tx = None 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 return tx

View File

@@ -56,7 +56,7 @@ def main(command_line_conf):
bitcoind_feed_params = {k: v for k, v in config.items() if k.startswith("FEED")} bitcoind_feed_params = {k: v for k, v in config.items() if k.startswith("FEED")}
if not can_connect_to_bitcoind(bitcoind_connect_params): 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")): 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") 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: try:
secret_key_der = Cryptographer.load_key_file(config.get("TEOS_SECRET_KEY")) secret_key_der = Cryptographer.load_key_file(config.get("TEOS_SECRET_KEY"))
if not secret_key_der: 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) block_processor = BlockProcessor(bitcoind_connect_params)
carrier = Carrier(bitcoind_connect_params) carrier = Carrier(bitcoind_connect_params)

View File

@@ -26,10 +26,10 @@ def post_request(data, endpoint):
return requests.post(url=endpoint, json=data, timeout=5) return requests.post(url=endpoint, json=data, timeout=5)
except ConnectTimeout: 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: 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): except (InvalidSchema, MissingSchema, InvalidURL):
message = "Invalid URL. No schema, or invalid schema, found ({})".format(endpoint) message = "Invalid URL. No schema, or invalid schema, found ({})".format(endpoint)