Fix bug when LogException handler
authorLaurent Bessard
Wed, 26 Jun 2013 16:56:34 +0200
changeset 1270 aa9bc3e6181d
parent 1269 e8e153a7c3bf
child 1271 757b83fd2173
Fix bug when LogException handler
Beremiz_service.py
--- a/Beremiz_service.py	Wed Jun 26 16:54:38 2013 +0200
+++ b/Beremiz_service.py	Wed Jun 26 16:56:34 2013 +0200
@@ -612,7 +612,7 @@
     if pyroserver.plcobj is not None:
         pyroserver.plcobj.LogMessage(0,'\n'.join(traceback.format_exception(*exp)))
     else:
-        traceback.print_exception(e_type, e_value, e_traceback)
+        traceback.print_exception(*exp)
 
 sys.excepthook = LogException
 def installThreadExcepthook():