# Can I handle reader errors myself without having the error window open?

**URL:** https://discourse.vtk.org/t/can-i-handle-reader-errors-myself-without-having-the-error-window-open/11793
**Category:** Support
**Tags:** python
**Created:** [June 22, 2023, 2:28pm UTC](https://discourse.vtk.org/t/can-i-handle-reader-errors-myself-without-having-the-error-window-open/11793 "2023-06-22T14:28:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Gub](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/g/a3d4f5/32.png) [@Gub](https://discourse.vtk.org/u/Gub)
#### Post date: [June 22, 2023, 2:28pm UTC](https://discourse.vtk.org/t/can-i-handle-reader-errors-myself-without-having-the-error-window-open/11793/1 "2023-06-22T14:28:44Z")

</div>

I am using the vtkFacetReader class (which I have recently discussed in another post) to read FACET files and load them into the renderer. Currently, when the reader encounters an error a new vtkOutputWindow is opened that says:

`ERROR: In vtkFacetReader.cxx, line XXX vtkFacetReader (000001C3D0DA3B90): (Insert error description here)`

After the error occurs, it becomes impossible to load files without restarting the application. If possible, I would like to catch these errors and handle them myself so that the application can continue to work and the second vtkOutputWindow does not open.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [June 22, 2023, 3:31pm UTC](https://discourse.vtk.org/t/can-i-handle-reader-errors-myself-without-having-the-error-window-open/11793/2 "2023-06-22T15:31:50Z")

</div>

There is no reason for this to happen, could you share a minimal reproducer ?
