We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 763af4e commit 61eeef4Copy full SHA for 61eeef4
CPAC/pipeline/engine/resource.py
@@ -3216,7 +3216,7 @@ def regressor_dct(self) -> dict:
3216
If regressor dictionary does not exist in current strategy.
3217
"""
3218
# pylint: disable=attribute-defined-outside-init
3219
- if hasattr(self, "_regressor_dct"): # memoized
+ if hasattr(self, "_regressor_dct") and self._regressor_dct: # memoized
3220
# pylint: disable=access-member-before-definition
3221
return self._regressor_dct
3222
key_error = KeyError(
0 commit comments