bugfix: Replaced inappropriate is comparison with == (#2157)

This commit is contained in:
Ataf Fazledin Ahamed
2024-10-02 14:10:31 +06:00
committed by GitHub
parent 70581ea9d3
commit 1b3cf10884

2
gui.py
View File

@@ -66,7 +66,7 @@ def gui(viewer, format, run_dir, stage):
extra_config = {}
if stage is not None:
matches = glob.glob(os.path.join(run_dir, "results", stage, f"*.{format}"))
if matches is []:
if matches == []:
err(f"No {format} found for stage {stage}")
else:
extra_config[f"CURRENT_{format.upper()}"] = matches[0]