Skip to content

Commit

Permalink
catch ValueError instead of IndexError in Pane_base._update_object (#695
Browse files Browse the repository at this point in the history
)
  • Loading branch information
xtaje authored and philippjfr committed Oct 12, 2019
1 parent ae9cff4 commit e8ad7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/pane/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _update_object(self, old_model, doc, root, parent, comm):
new_model = self._get_model(doc, root, parent, comm)
try:
index = parent.children.index(old_model)
except IndexError:
except ValueError:
self.warning('%s pane model %s could not be replaced '
'with new model %s, ensure that the '
'parent is not modified at the same '
Expand Down

0 comments on commit e8ad7e6

Please sign in to comment.