v10.7.2: Fix false positive message about suspended servers

This commit is contained in:
Administrator 2024-01-03 02:17:27 +00:00
parent 0881d28222
commit 7a4f228625
2 changed files with 6 additions and 3 deletions

View File

@ -2,4 +2,4 @@
__all__ = ["api", "api_client", "client", "exceptions"]
__version__ = "10.7.1"
__version__ = "10.7.2"

View File

@ -425,8 +425,11 @@ def server_list(
str(info.autorenew),
)
if info.suspended_at != 0:
typer.echo(f"Warning: {info.machine_id} is suspended!", err=True)
if info.suspended_at is not None:
typer.echo(
f"Warning: {info.machine_id} was suspended at {info.suspended_at}!",
err=True,
)
printed_machine_ids.append(info.machine_id)