diff --git a/src/silx/gui/plot/PlotWidget.py b/src/silx/gui/plot/PlotWidget.py index d6de401281..5f050f93f2 100755 --- a/src/silx/gui/plot/PlotWidget.py +++ b/src/silx/gui/plot/PlotWidget.py @@ -909,7 +909,7 @@ def _itemKind(cls, item): for kind, itemClasses in cls._KIND_TO_CLASSES.items(): if isinstance(item, itemClasses): return kind - raise ValueError('Unsupported item type %s' % type(item)) + return 'other' def _notifyContentChanged(self, item): self.notify('contentChanged', action='add',