Skip to content

Commit 6cb6b5d

Browse files
committed
Remove superflous check
We set the `store_or` attribute a few lines above and verify it already.
1 parent 5fd677b commit 6cb6b5d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

easybuild/base/generaloption.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,7 @@ def store_or(option, opt_str, value, parser, *args, **kwargs): # pylint: disabl
247247
'orig_default': copy.deepcopy(self.default),
248248
}
249249
self.action = 'callback' # act as callback
250-
251-
if self.store_or in self.EXTOPTION_STORE_OR:
252-
self.default = None
253-
else:
254-
self.log.raiseException("_set_attrs: unknown store_or %s" % self.store_or, exception=ValueError)
250+
self.default = None
255251

256252
def process(self, opt, value, values, parser):
257253
"""Handle option-as-value issues before actually processing option."""

0 commit comments

Comments
 (0)