Skip to content

Commit

Permalink
Properly check if missing env var list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
equinor-ruaj committed Nov 26, 2024
1 parent e6275bf commit 2e60255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fmu/sumo/sim2sumo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2e60255

Please sign in to comment.