Skip to content

Commit 46681a7

Browse files
committed
Add check for unattended execution in ColorMapManager to skip colormap validation
1 parent 87a52dc commit 46681a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plotpy/widgets/colormap/manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ def remove_colormap(self) -> None:
349349
return
350350
name = cmap.name
351351
if name == self.active_cmap_name or cmap_exists(name, DEFAULT_COLORMAPS):
352+
if execenv.unattended: # For testing purposes only
353+
return
352354
if name == self.active_cmap_name:
353355
msg = _("Colormap <b>%s</b> is the active colormap.")
354356
else:

0 commit comments

Comments
 (0)