summaryrefslogtreecommitdiff
path: root/silx/gui/plot/tools/profile/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/gui/plot/tools/profile/core.py')
-rw-r--r--silx/gui/plot/tools/profile/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/silx/gui/plot/tools/profile/core.py b/silx/gui/plot/tools/profile/core.py
index 1f883dc..200f5cf 100644
--- a/silx/gui/plot/tools/profile/core.py
+++ b/silx/gui/plot/tools/profile/core.py
@@ -167,7 +167,10 @@ class ProfileRoiMixIn:
def __profileWindowAboutToClose(self):
profileManager = self.getProfileManager()
roiManager = profileManager.getRoiManager()
- roiManager.removeRoi(self)
+ try:
+ roiManager.removeRoi(self)
+ except ValueError:
+ pass
def computeProfile(self, item):
"""