From c0ecb7ebeee13e8ce161e13487963eb0339c4591 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Thu, 17 Oct 2024 12:36:01 +1100 Subject: [PATCH] check for loop is not none --- xnat_ingest/cli/stage.py | 2 +- xnat_ingest/cli/upload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()