mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +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.
|
# Send request to the server.
|
||||||
get_appointment_endpoint = "{}/get_appointment".format(teos_url)
|
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))
|
response = process_post_response(post_request(data, get_appointment_endpoint))
|
||||||
|
|
||||||
return response
|
return response
|
||||||
@@ -469,7 +469,7 @@ def main(command, args, command_line_conf):
|
|||||||
except (FileNotFoundError, IOError, ConnectionError, ValueError) as e:
|
except (FileNotFoundError, IOError, ConnectionError, ValueError) as e:
|
||||||
logger.error(str(e))
|
logger.error(str(e))
|
||||||
except (InvalidKey, InvalidParameter, TowerResponseError) as e:
|
except (InvalidKey, InvalidParameter, TowerResponseError) as e:
|
||||||
logger.error(e.reason, **e.params)
|
logger.error(e.reason, **e.kwargs)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Unknown error occurred", error=str(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.
|
user_pk (:obj:`str`): a 33-byte hex-encoded string identifying the user.
|
||||||
|
|
||||||
Returns:
|
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.
|
Returns ``None`` otherwise.
|
||||||
"""
|
"""
|
||||||
@@ -105,7 +105,7 @@ class UsersDBM(DBManager):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
except TypeError:
|
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
|
return False
|
||||||
|
|
||||||
def load_all_users(self):
|
def load_all_users(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user