From 784b32afb5032b120639ee1b5b46c82322e839e5 Mon Sep 17 00:00:00 2001 From: Thomas VINCENT Date: Thu, 13 Jul 2023 14:45:43 +0200 Subject: [PATCH] Add 'other' kind of plot item --- src/silx/gui/plot/PlotWidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',