Skip to content

Commit

Permalink
Bundle: Add comment to try-except block in make_module_req_guess()
Browse files Browse the repository at this point in the history
Signed-off-by: Jan André Reuter <[email protected]>
  • Loading branch information
Thyre committed Dec 4, 2024
1 parent bd6f1ac commit 995cf1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions easybuild/easyblocks/generic/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ def make_module_req_guess(self):
self.log.info("Gathering module paths for component %s v%s", cfg['name'], cfg['version'])
reqs = comp.make_module_req_guess()

# Try-except block to fail with an easily understandable error message.
# This should only trigger when an EasyBlock returns non-dict module requirements
# for make_module_req_guess() which should then be fixed the components EasyBlock.
try:
for key, value in sorted(reqs.items()):
if isinstance(value, string_type):
Expand Down

0 comments on commit 995cf1b

Please sign in to comment.