Skip to content

Commit bf4cd97

Browse files
BasePlotlyType.__setitem__ exceptions casted to ValueError
1 parent 9bb2470 commit bf4cd97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/python/plotly/plotly/basedatatypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4193,7 +4193,7 @@ def __setitem__(self, prop, value):
41934193
# ----------------------
41944194
# e.g. ('foo', 1), ()
41954195
else:
4196-
err = _check_path_in_prop_tree(self, orig_prop)
4196+
err = _check_path_in_prop_tree(self, orig_prop, error_cast=ValueError)
41974197
if err is not None:
41984198
raise err
41994199
res = self

0 commit comments

Comments
 (0)