From 80ab0fbde6815ab39d62c942b8f125c38d25ba02 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Wed, 30 Oct 2019 13:29:22 -0500 Subject: [PATCH] Fix bug when computing diffs (#725) --- panel/io/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panel/io/model.py b/panel/io/model.py index 8a13aa153d..1fdb9247a9 100644 --- a/panel/io/model.py +++ b/panel/io/model.py @@ -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)