# readBlocking and timeout exception

**URL:** <https://forum.inductiveautomation.com/t/readblocking-and-timeout-exception/38921>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [September 22, 2020, 8:44am UTC](https://forum.inductiveautomation.com/t/readblocking-and-timeout-exception/38921 "2020-09-22T08:44:28Z")\
**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:** [September 22, 2020, 12:20pm UTC](https://forum.inductiveautomation.com/t/readblocking-and-timeout-exception/38921/3 "2020-09-22T12:20:24Z")

</div>

If the error was a direct throw of that TimeoutException, your `except` clause would work. But it is being wrapped in some other throwable (the TimeoutException add as the cause). I recommend this structure for this case:

```auto
import java.lang.Throwable

def someFunction():
	try:
		system.tag.writeBlocking(.....)
	except java.lang.Throwable, t:
		# do something, including looking at t.cause
	except Exception, e:
		# do something with other python problems.

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/readblocking-and-timeout-exception/38921)._
