# Race condition question Transaction group vs change event script

**URL:** <https://forum.inductiveautomation.com/t/race-condition-question-transaction-group-vs-change-event-script/88258>\
**Category:** Ignition\
**Created:** [April 2, 2024, 8:33pm UTC](https://forum.inductiveautomation.com/t/race-condition-question-transaction-group-vs-change-event-script/88258 "2024-04-02T20:33:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Zach\_Larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zach_larson/32/54388_2.png) [@Zach\_Larson](https://forum.inductiveautomation.com/u/Zach_Larson)\
**Post date:** [April 5, 2024, 2:27pm UTC](https://forum.inductiveautomation.com/t/race-condition-question-transaction-group-vs-change-event-script/88258/5 "2024-04-05T14:27:42Z")

</div>

Where is the transaction being called?

```auto
except Throwable, t:
			# Log and set failure handshake
			logger.warn("Java Error recording transaction", t)

```

Is this for a special logger or Ignition's builtin?  
Because I am getting an error that Throwable is not defined when attempting to use it.

* * *

Going to try this instead.

> [@Troubleshooting tag event script suggestions?](https://forum.inductiveautomation.com/t/troubleshooting-tag-event-script-suggestions/26560/2):
>
> If the tag diagnostics on the tags are not showing any error, then, your best bet is to implement a logger with a try…except structure. Something like: import java.lang.Exception logger = system.util.getLogger("yourLoggerName") try: #script to attempt except: java.lang.Exception, e: logger.warn("An error occurred" , e) except Exception, e: logger.warnf("An error occurred: %s",e)@pturmel has a PythonAsJavaException class in his [later.py](https://www.automation-pros.com/ignition/later.py) which will allow for more detail in th…

---

_[View the full topic](https://forum.inductiveautomation.com/t/race-condition-question-transaction-group-vs-change-event-script/88258)._
