Ensure plotly TriSurfacePlot raises SkipRendering error if SciPy is missing
@@ -97,7 +97,7 @@ class TriSurfacePlot(Chart3DPlot, ColorbarPlot):
try:
from scipy.spatial import Delaunay
except:
- SkipRendering("SciPy not available, cannot plot TriSurface")
+ raise SkipRendering("SciPy not available, cannot plot TriSurface")
x, y, z = (element.dimension_values(i) for i in range(3))
points2D = np.vstack([x, y]).T
tri = Delaunay(points2D)
