fix: Remove receiving output from io.err method

The method never returns anything so we should not receive output.
This commit is contained in:
Marty Oehme 2025-11-29 21:06:09 +01:00
parent 04d21c61fa
commit a2c5cf281b
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -51,14 +51,14 @@ def main(cfg: "TConf | None" = None, io: "_IO | None" = None) -> int:
io = _IO(quiet=cfg.notes_quiet)
if not cfg.task_id:
_ = io.err("Please provide task ID as argument.\n")
io.err("Please provide task ID as argument.\n")
return 1
try:
task = get_task(id=cfg.task_id, data_location=cfg.task_data)
uuid = cast(str, task["uuid"])
except Task.DoesNotExist:
_ = io.err(f"Could not find task for ID: {cfg.task_id}.\n")
io.err(f"Could not find task for ID: {cfg.task_id}.\n")
return 1
fpath = get_notes_file(uuid, notes_dir=cfg.notes_dir, notes_ext=cfg.notes_ext)