return 0 and write to stdout if empty list

This commit is contained in:
onyx-and-iris 2025-05-26 20:54:06 +01:00
parent 9fa61351d0
commit b5364bfedc

View File

@ -41,8 +41,8 @@ def list(
]
if not groups:
err_console.print(f"No groups found in scene '{scene_name}'.")
raise typer.Exit(1)
out_console.print(f"No groups found in scene '{scene_name}'.")
return
table = Table(title=f'Groups in Scene: {scene_name}', padding=(0, 2))