# Try:Except: Not working

**URL:** <https://forum.inductiveautomation.com/t/try-not-working/30572>\
**Category:** Ignition\
**Created:** [December 10, 2019, 1:47pm UTC](https://forum.inductiveautomation.com/t/try-not-working/30572 "2019-12-10T13:47:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 10, 2019, 2:36pm UTC](https://forum.inductiveautomation.com/t/try-not-working/30572/3 "2019-12-10T14:36:25Z")

</div>

Shouldn't be necessary. But consider using a `finally` clause instead of `except` for cleanup operations. Also, python won't catch pure java exceptions unless you use double except clauses, like so:

> [@Catch IOException?](http://forum.inductiveautomation.com/t/catch-ioexception/18612/2):
>
> Can you copy the full details of the error message? It’s probably calling out to open the file along a different code path; there may or may not be a way to work around the issue.

---

_[View the full topic](https://forum.inductiveautomation.com/t/try-not-working/30572)._
