Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion reflex/vars/dep_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ def load_attr_or_method(self, instruction: dis.Instruction) -> None:
if not self.top_of_stack:
return
target_obj = self.get_tracked_local(self.top_of_stack)
target_state = assert_base_state(target_obj, local_name=self.top_of_stack)
try:
target_state = assert_base_state(target_obj, local_name=self.top_of_stack)
except VarValueError:
# If the target state is not a BaseState, we cannot track dependencies on it.
return
try:
ref_obj = getattr(target_state, instruction.argval)
except AttributeError:
Expand Down
Loading