Skip to content

Commit fcc1b7b

Browse files
committed
bugfix: None detection
1 parent d78f9ae commit fcc1b7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyomo/core/base/set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,7 @@ def construct(self, data=None):
23112311
# that we would then want to process with Initializer(). If
23122312
# the rule actually returned a constant, then this is just a
23132313
# little overhead.
2314-
if self._init_values._init.constant():
2314+
if self._init_values is not None and self._init_values._init.constant():
23152315
self._init_values = TuplizeValuesInitializer(
23162316
Initializer(
23172317
self._init_values._init(self.parent_block(), None),

0 commit comments

Comments
 (0)