Skip to content

Commit 26d177e

Browse files
committed
control: catch None type; fix coloring
1 parent fb0c109 commit 26d177e

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
@@ -146,8 +146,10 @@ def uninstall_release(namespace, release_name):
146146
# Wait for all tasks to complete and print results
147147
for future in as_completed(futures):
148148
result = future.result()
149-
msg = result if isinstance(result, str) else result.metadata.name
150-
console.print(f"[yellow]Deletion: {msg} [/yellow]")
149+
msg = ""
150+
if result:
151+
msg = result if isinstance(result, str) else result.metadata.name
152+
click.secho(f"Deletion: {msg}", fg="yellow")
151153

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

0 commit comments

Comments
 (0)