Fixes typo in variable and inconsistent return type

This commit is contained in:
Sergi Delgado Segura
2020-03-31 16:54:52 +02:00
parent 502f507b21
commit 3e32d8a85e

View File

@@ -30,7 +30,7 @@ common.cryptographer.logger = Logger(actor="Cryptographer", log_name_prefix=LOG_
def register(compressed_pk, teos_url): def register(compressed_pk, teos_url):
if not check_compressed_pk_format(compressed_pk): if not check_compressed_pk_format(compressed_pk):
logger.error("The cli public key is not valid") logger.error("The cli public key is not valid")
return False return None
# Send request to the server. # Send request to the server.
register_endpoint = "{}/register".format(teos_url) register_endpoint = "{}/register".format(teos_url)
@@ -383,7 +383,7 @@ def main(args, command_line_conf):
keys = load_keys(config.get("TEOS_PUBLIC_KEY"), config.get("CLI_PRIVATE_KEY"), config.get("CLI_PUBLIC_KEY")) keys = load_keys(config.get("TEOS_PUBLIC_KEY"), config.get("CLI_PRIVATE_KEY"), config.get("CLI_PUBLIC_KEY"))
if keys is not None: if keys is not None:
teos_pk, cli_sk, compress_cli_pk = keys teos_pk, cli_sk, compressed_cli_pk = keys
try: try:
if args: if args: