Skip to content

Commit 792dcbd

Browse files
committed
control: catch None type; fix coloring
1 parent d17f456 commit 792dcbd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/warnet/control.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ def uninstall_release(namespace, release_name):
143143
# Wait for all tasks to complete and print results
144144
for future in as_completed(futures):
145145
result = future.result()
146-
msg = result if isinstance(result, str) else result.metadata.name
147-
console.print(f"[yellow]Deletion: {msg} [/yellow]")
146+
msg = ""
147+
if result:
148+
msg = result if isinstance(result, str) else result.metadata.name
149+
click.secho(f"Deletion: {msg}", fg="yellow")
148150

149151
console.print("[bold yellow]Teardown process initiated for all components.[/bold yellow]")
150152
console.print("[bold yellow]Note: Some processes may continue in the background.[/bold yellow]")

0 commit comments

Comments
 (0)