diff --git a/xnat_ingest/cli/stage.py b/xnat_ingest/cli/stage.py index ce11f53..08ee319 100644 --- a/xnat_ingest/cli/stage.py +++ b/xnat_ingest/cli/stage.py @@ -383,7 +383,7 @@ def do_stage() -> None: else: raise - if loop: + if loop is not None: while True: start_time = datetime.datetime.now() do_stage() diff --git a/xnat_ingest/cli/upload.py b/xnat_ingest/cli/upload.py index 7526b2f..12cbceb 100644 --- a/xnat_ingest/cli/upload.py +++ b/xnat_ingest/cli/upload.py @@ -416,7 +416,7 @@ def do_upload() -> None: else: assert False - if loop: + if loop is not None: while True: start_time = datetime.datetime.now() do_upload()