From a40b92503a1dc1e328def1f087bacfb1ad38d0ab Mon Sep 17 00:00:00 2001 From: fazledyn Date: Wed, 2 Oct 2024 02:52:41 +0600 Subject: [PATCH] bugfix: Replaced inappropriate `is` comparison with `==` --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.py b/gui.py index bc9fde256..369d031ec 100755 --- a/gui.py +++ b/gui.py @@ -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]