Skip to content

Commit edb5bbe

Browse files
committed
fix broken test by doing early exit in EasyBlock.init_ext_instances if exts_list is empty
1 parent 25a1fe8 commit edb5bbe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2243,11 +2243,16 @@ def init_ext_instances(self):
22432243
"""
22442244
Create class instances for all extensions.
22452245
"""
2246+
exts_list = self.cfg.get_ref('exts_list')
2247+
2248+
# early exit if there are no extensions
2249+
if not exts_list:
2250+
return
22462251

22472252
self.ext_instances = []
22482253
exts_classmap = self.cfg['exts_classmap']
22492254

2250-
if self.cfg['exts_list'] and not self.exts:
2255+
if exts_list and not self.exts:
22512256
self.exts = self.fetch_extension_sources()
22522257

22532258
# obtain name and module path for default extention class

0 commit comments

Comments
 (0)