Skip to content

Commit

Permalink
Fix bug when computing diffs (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored and jsignell committed Oct 30, 2019
1 parent c63a5ca commit 80ab0fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/io/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def diff(doc, binary=True, events=None):
# columns, later event will include the changes
fixed_events = []
for e in events:
if isinstance(e.hint, ColumnDataChangedEvent) and e.hint.cols is not None:
if (hasattr(e, 'hint') and isinstance(e.hint, ColumnDataChangedEvent)
and e.hint.cols is not None):
e.hint.cols = None
fixed_events.append(e)
msg = Protocol("1.0").create("PATCH-DOC", events, use_buffers=binary)
Expand Down

0 comments on commit 80ab0fb

Please sign in to comment.