--- a/runtime/Worker.py Tue Oct 02 15:52:11 2018 +0200
+++ b/runtime/Worker.py Tue Oct 02 15:56:09 2018 +0200
@@ -8,6 +8,7 @@
# See COPYING.Runtime file for copyrights details.
from __future__ import absolute_import
from threading import Lock, Condition
@@ -54,8 +55,13 @@
self._threadID = thread.get_ident()
- job(*args, **kwargs).do()
+ _job = job(*args, **kwargs) + raise _job.exc_info[0], _job.exc_info[1], _job.exc_info[2] --- a/runtime/__init__.py Tue Oct 02 15:52:11 2018 +0200
+++ b/runtime/__init__.py Tue Oct 02 15:56:09 2018 +0200
@@ -23,9 +23,8 @@
if _PLCObjectSingleton is not None:
_PLCObjectSingleton.LogMessage(0, msg + '\n'.join(traceback.format_exception(*exp)))
- traceback.print_exception(*exp)
+ traceback.print_exception(*exp) def CreatePLCObjectSingleton(*args):
global _PLCObjectSingleton