This commit is contained in:
Sergi Delgado Segura
2020-04-09 17:15:24 +02:00
parent 79231c6b38
commit 472efd847b
2 changed files with 4 additions and 4 deletions

View File

@@ -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))

View File

@@ -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):