Skip to content

Commit 1b3cf10

Browse files
authored
bugfix: Replaced inappropriate is comparison with == (#2157)
1 parent 70581ea commit 1b3cf10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def gui(viewer, format, run_dir, stage):
6666
extra_config = {}
6767
if stage is not None:
6868
matches = glob.glob(os.path.join(run_dir, "results", stage, f"*.{format}"))
69-
if matches is []:
69+
if matches == []:
7070
err(f"No {format} found for stage {stage}")
7171
else:
7272
extra_config[f"CURRENT_{format.upper()}"] = matches[0]

0 commit comments

Comments
 (0)