runtime/__init__.py
changeset 2307 c44692b53736
parent 2270 d9175daf6522
child 2309 d8fb90a2e11f
--- 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 @@
         exp = sys.exc_info()
     if _PLCObjectSingleton is not None:
         _PLCObjectSingleton.LogMessage(0, msg + '\n'.join(traceback.format_exception(*exp)))
-    else:
-        print(msg)
-        traceback.print_exception(*exp)
+    print(msg)
+    traceback.print_exception(*exp)
 
 def CreatePLCObjectSingleton(*args):
     global _PLCObjectSingleton