From 472efd847b2f05741b708faa58e4c911e177ecfc Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Thu, 9 Apr 2020 17:15:24 +0200 Subject: [PATCH] Typos --- cli/teos_cli.py | 4 ++-- teos/users_dbm.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/teos_cli.py b/cli/teos_cli.py index a64d21c..fd56dc7 100644 --- a/cli/teos_cli.py +++ b/cli/teos_cli.py @@ -166,7 +166,7 @@ def get_appointment(locator, cli_sk, teos_pk, teos_url): # Send request to the server. get_appointment_endpoint = "{}/get_appointment".format(teos_url) - logger.info("Sending appointment to the Eye of Satoshi") + logger.info("Requesting appointment from the Eye of Satoshi") response = process_post_response(post_request(data, get_appointment_endpoint)) return response @@ -469,7 +469,7 @@ def main(command, args, command_line_conf): except (FileNotFoundError, IOError, ConnectionError, ValueError) as e: logger.error(str(e)) except (InvalidKey, InvalidParameter, TowerResponseError) as e: - logger.error(e.reason, **e.params) + logger.error(e.reason, **e.kwargs) except Exception as e: logger.error("Unknown error occurred", error=str(e)) diff --git a/teos/users_dbm.py b/teos/users_dbm.py index c71ee5a..d24b421 100644 --- a/teos/users_dbm.py +++ b/teos/users_dbm.py @@ -75,7 +75,7 @@ class UsersDBM(DBManager): user_pk (:obj:`str`): a 33-byte hex-encoded string identifying the user. Returns: - :obj:`dict`: A dictionary containing the appointment data if the ``key`` is found. + :obj:`dict`: A dictionary containing the user data if the ``key`` is found. Returns ``None`` otherwise. """ @@ -105,7 +105,7 @@ class UsersDBM(DBManager): return True except TypeError: - logger.info("Cant delete user from db, user key has wrong type", uuid=user_pk) + logger.info("Cannot delete user from db, user key has wrong type", uuid=user_pk) return False def load_all_users(self):