Validate entry type fields

This commit is contained in:
thePR0M3TH3AN
2025-07-12 13:03:39 -04:00
parent 543942da76
commit b52d027ec7
6 changed files with 155 additions and 20 deletions

View File

@@ -306,16 +306,20 @@ def entry_modify(
) -> None:
"""Modify an existing entry."""
pm = _get_pm(ctx)
pm.entry_manager.modify_entry(
entry_id,
username=username,
url=url,
notes=notes,
label=label,
period=period,
digits=digits,
value=value,
)
try:
pm.entry_manager.modify_entry(
entry_id,
username=username,
url=url,
notes=notes,
label=label,
period=period,
digits=digits,
value=value,
)
except ValueError as e:
typer.echo(str(e))
raise typer.Exit(code=1)
pm.sync_vault()