mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
Typos
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user