diff --git a/gramps/gui/clipboard.py b/gramps/gui/clipboard.py index 783231cbb..34f2aaf06 100644 --- a/gramps/gui/clipboard.py +++ b/gramps/gui/clipboard.py @@ -864,8 +864,10 @@ class ClipDropList(object): retval = [] for (target, handle) in handles: _class = map2class(target) - obj = _class(self._dbstate, pickle.dumps((target, id, handle, timestamp))) - retval.append(obj) + if _class: + obj = _class(self._dbstate, pickle.dumps((target, id, handle, timestamp))) + if obj: + retval.append(obj) return retval class ClipDropRawList(ClipDropList):