[Paraview] How to stop a paraview python script on error (try-catch-ing) ?
Ben Boeckel
ben.boeckel at kitware.com
Mon Jan 4 15:38:00 EST 2016
On Sat, Jan 02, 2016 at 16:12:49 +0100, houssen wrote:
> How to stop a paraview python script on error (try-catch-ing) ?
>
> I have a filter (which calls vtkErrorMacro when an error occurs). I
> have a python script that uses this filter from paraview: how to stop
> this script when an error occurs ? I tried to add "try/except" in core
> part of the script but it does not work as expected (keep running, don't
> stop).
VTK errors are not Python exceptions, so there's nothing to catch. See
this post from David Gobbi:
http://public.kitware.com/pipermail/vtkusers/2012-June/074703.html
--Ben
More information about the ParaView
mailing list