util/ExceptionHandler.py
changeset 1953 5736d25bb393
parent 1941 cde74a39df51
child 3303 0ffb41625592
--- a/util/ExceptionHandler.py	Tue Feb 20 11:24:40 2018 +0100
+++ b/util/ExceptionHandler.py	Tue Feb 20 14:16:51 2018 +0100
@@ -74,7 +74,8 @@
     finally:
         dlg.Destroy()
 
-    if exit : sys.exit() #wx.Exit()
+    if exit:
+        sys.exit()  # wx.Exit()
 
     return res
 
@@ -127,7 +128,7 @@
             output.write(a + ":\n" + str(info[a]) + "\n\n")
         output.close()
 
-    def handle_exception(e_type, e_value, e_traceback, exit = False):
+    def handle_exception(e_type, e_value, e_traceback, exit=False):
         traceback.print_exception(e_type, e_value, e_traceback)  # this is very helpful when there's an exception in the rest of this func
         last_tb = get_last_traceback(e_traceback)
         ex = (last_tb.tb_frame.f_code.co_filename, last_tb.tb_frame.f_lineno)