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 <j.reuter@fz-juelich.de>
  • Loading branch information
Thyre committed Dec 4, 2024
1 parent bce45f5 commit 4ebf4a3
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 in the components EasyBlock.
try:
for key, value in sorted(reqs.items()):
if isinstance(value, string_type):
Expand Down

0 comments on commit 4ebf4a3

Please sign in to comment.