Skip to content

Commit 3d0460e

Browse files
committed
Don't error if plotly.js introduces a property not in our schema
1 parent 6148b88 commit 3d0460e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plotly/basedatatypes.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,9 +1585,10 @@ def _dispatch_trace_change_callbacks(self, restyle_data, trace_indexes):
15851585
for path_tuple, changed_paths in dispatch_plan.items():
15861586
for trace_ind in trace_indexes:
15871587
trace = self.data[trace_ind]
1588-
dispatch_obj = trace[path_tuple]
1589-
if isinstance(dispatch_obj, BasePlotlyType):
1590-
dispatch_obj._dispatch_change_callbacks(changed_paths)
1588+
if path_tuple in trace:
1589+
dispatch_obj = trace[path_tuple]
1590+
if isinstance(dispatch_obj, BasePlotlyType):
1591+
dispatch_obj._dispatch_change_callbacks(changed_paths)
15911592

15921593
# Frames
15931594
# ------

0 commit comments

Comments
 (0)