Skip to content

Commit b88ede7

Browse files
fix: use restriction_attributes property instead of private _restriction_attributes
FreeTable._restriction_attributes is None by default. The property accessor initializes it to set() on first access. The make_condition call in part_integrity="cascade" upward propagation was using the private attribute directly, causing AttributeError when columns=None. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d2626e0 commit b88ede7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datajoint/diagram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def _propagate_restrictions(self, start_node, mode, part_integrity="enforce"):
518518
master_restr = make_condition(
519519
master_ft,
520520
(master_ft.proj() & child_ft.proj()).to_arrays(),
521-
master_ft._restriction_attributes,
521+
master_ft.restriction_attributes,
522522
)
523523
restrictions[master_name] = [master_restr]
524524
self._restriction_attrs[master_name] = set()

0 commit comments

Comments
 (0)