Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Sep 29, 2023
1 parent 28a2d2c commit b39d60a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jcsda-emc/spack-stack/stack/stack_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def get_lmod_or_tcl(self, site_configs_dir):
with open(site_modules_yaml_path, "r") as f:
site_modules_yaml = syaml.load_config(f)
lmod_or_tcl_list = site_modules_yaml["modules"]["default"]["enable"]
assert site_modules_yaml["modules"]["default"]["enable"], (
"Set 'modules:default:enable' in site modules.yaml, or use --modulesys {tcl,lmod}"
)
assert (
lmod_or_tcl_list
), "Set 'modules:default:enable' in site modules.yaml, or use --modulesys {tcl,lmod}"
if len(set(lmod_or_tcl_list)) > 1:
logging.warning(
"WARNING: Multiple lmod/tcl settings found for %s; using the first"
Expand Down

0 comments on commit b39d60a

Please sign in to comment.