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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to