diff --git a/setup.cfg b/setup.cfg index b5057a0..7a6e9b6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = sporestack -version = 5.2.1 +version = 5.2.2 description = SporeStack.com library and client. Launch servers with Monero or Bitcoin. long_description = file: README.md long_description_content_type = text/markdown diff --git a/src/sporestack/cli.py b/src/sporestack/cli.py index 055a65f..468d1c7 100644 --- a/src/sporestack/cli.py +++ b/src/sporestack/cli.py @@ -348,6 +348,8 @@ def list() -> None: """ List all locally known servers. """ + from .exceptions import SporeStackUserError + directory = machine_info_path() infos = [] for hostname_json in os.listdir(directory): @@ -360,7 +362,7 @@ def list() -> None: saved_vm_info["expiration"] = upstream_vm_info.expiration saved_vm_info["running"] = upstream_vm_info.running infos.append(saved_vm_info) - except ValueError as e: + except SporeStackUserError as e: expiration = saved_vm_info["expiration"] human_expiration = time.strftime( "%Y-%m-%d %H:%M:%S %z", time.localtime(expiration)