Skip to content

Commit

Permalink
check for loop is not none
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Oct 17, 2024
1 parent 1e402f1 commit c0ecb7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xnat_ingest/cli/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion xnat_ingest/cli/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c0ecb7e

Please sign in to comment.