Skip to content

Commit 3a3f1c6

Browse files
committed
use hasattr to check for components
1 parent 0c0a7b4 commit 3a3f1c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5033,7 +5033,7 @@ def build_and_install_one(ecdict, init_env):
50335033
_log.warning("Failed to create build environment dump for easyconfig %s: %s", reprod_spec, err)
50345034

50355035
# also add any component/extension easyblocks used during the build for reproducibility
5036-
if app.comp_instances:
5036+
if hasattr(app, 'comp_instances'):
50375037
copy_easyblocks_for_reprod([comp for cfg, comp in app.comp_instances], reprod_dir)
50385038
if app.ext_instances:
50395039
copy_easyblocks_for_reprod(app.ext_instances, reprod_dir)

0 commit comments

Comments
 (0)