From 2e60255972457f2e51b9b69b4a36c627a2b898cb Mon Sep 17 00:00:00 2001 From: Runar Ask Johannessen <89020325+equinor-ruaj@users.noreply.github.com> Date: Tue, 26 Nov 2024 13:31:57 +0100 Subject: [PATCH] Properly check if missing env var list is empty --- src/fmu/sumo/sim2sumo/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmu/sumo/sim2sumo/main.py b/src/fmu/sumo/sim2sumo/main.py index 50ac248..10e9002 100644 --- a/src/fmu/sumo/sim2sumo/main.py +++ b/src/fmu/sumo/sim2sumo/main.py @@ -56,7 +56,7 @@ def main(): if envVar not in environ: missing.append(envVar) - if missing > 0: + if missing: print( "Required ERT environment variables not found:" f"{', '.join(missing)}.\n"