So far I’ve been unable to catch this error, I’ve tried putting the try/except in a few different places. It makes the most sense to me that it should be directly around the system.tag.writeBlocking call, such as this:
#Mass write all values back to zero immediately after reading.
try:
system.tag.writeBlocking(paths, [0,False,0,False,0,False,0,False,0,False,0,False,0,False,0,False,0,False], writeTimeout)
except java.util.concurrent.TimeoutException, e:
logger.warn("Java Timeout exception for plant %s %s %s" % (plant, deviceName, opName))
However this is not catching the error and it is still unhandled. I also tried putting it in the calling script that calls this function but that did not catch it either.