From 8da6a06099113048be286fa09d51ea7e48a57f68 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Wed, 9 Feb 2022 14:36:14 -0500 Subject: [PATCH] This is why I prefer rust --- caw/commands/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caw/commands/download.py b/caw/commands/download.py index a1bac3f..ac2801d 100644 --- a/caw/commands/download.py +++ b/caw/commands/download.py @@ -20,7 +20,7 @@ def download( Download everything from a ChRIS url. """ base_address = api_address(CUBEUrl(url)) - if base_address != build_client.address: + if build_client.address is not None and base_address != build_client.address: if build_client.address != DEFAULT_ADDRESS: given_address = typer.style(f'--address={build_client.address}', fg=typer.colors.GREEN, bold=True)