diff --git a/pyproject.toml b/pyproject.toml index bab698a..fb3a1b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,7 @@ description = "CLI key-authorization manager for envelope_crypto" requires-python = ">=3.10" dependencies = [ "envelope_crypto @ git+ssh://git@git.rethinkstudios.io/rethink-public/envelope_crypto.git", + "cryptography>=42.0", "tomli>=2.0; python_version<'3.11'", ] diff --git a/src/envelope_authorizer/commands/list_keys.py b/src/envelope_authorizer/commands/list_keys.py index e8a0e08..fd54011 100644 --- a/src/envelope_authorizer/commands/list_keys.py +++ b/src/envelope_authorizer/commands/list_keys.py @@ -40,7 +40,7 @@ def run(config, storage, args) -> None: for doc in docs: meta = doc_meta(doc) print( - f"{doc.get('_id', '')[:16]:<18} " + f"{(doc.get('_id') or '')[:16]:<18} " f"{str(meta.get('friendly', '-')):<16} " f"{str(meta.get('created_by', '-')):<18} " f"{_created(meta):<21} "