# system.tag.writeBlocking() not handled by try/except block

**URL:** <https://forum.inductiveautomation.com/t/system-tag-writeblocking-not-handled-by-try-except-block/102850>\
**Category:** Ignition\
**Tags:** scripting, ignition81\
**Created:** [February 25, 2025, 4:17pm UTC](https://forum.inductiveautomation.com/t/system-tag-writeblocking-not-handled-by-try-except-block/102850 "2025-02-25T16:17:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 25, 2025, 4:35pm UTC](https://forum.inductiveautomation.com/t/system-tag-writeblocking-not-handled-by-try-except-block/102850/4 "2025-02-25T16:35:28Z")

</div>

For complicated reasons, _Jython_ exceptions are distinct from _Java_ exceptions, and so you need to catch _both_, separately:

> [@Catch IOException?](https://forum.inductiveautomation.com/t/catch-ioexception/18612/3):
>
> Consider using two except blocks, as jython’s standard Exception won’t catch pure java exceptions. Like so: import java.lang.Exception try: # something something something except Exception, e: # jython exception except java.lang.Exception, e: # java exception

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-tag-writeblocking-not-handled-by-try-except-block/102850)._
