identity: indent the file

This commit is contained in:
dece 2021-05-29 01:14:31 +02:00
parent 2d493af64b
commit 690879f558

View file

@ -49,7 +49,7 @@ def save_identities(identities: dict, identities_path: Path):
"""Save the certificate stash. Return True on success.""" """Save the certificate stash. Return True on success."""
try: try:
with open(identities_path, "wt") as identities_file: with open(identities_path, "wt") as identities_file:
json.dump(identities, identities_file) json.dump(identities, identities_file, indent=2)
except (OSError, ValueError) as exc: except (OSError, ValueError) as exc:
logging.error(f"Failed to save identities '{identities_path}': {exc}") logging.error(f"Failed to save identities '{identities_path}': {exc}")
return False return False