Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

dispatch: catch SystemExit before Exception as it derives from it in Py24

Changeset 04240787bd45

Parent 9831e13f9a66

by Gilles Moris

Changes to one file · Browse files at 04240787bd45 Showing diff from parent 9831e13f9a66 Diff from another changeset...

 
60
61
62
 
 
63
64
65
 
69
70
71
72
73
74
75
76
 
60
61
62
63
64
65
66
67
 
71
72
73
 
 
74
75
76
@@ -60,6 +60,8 @@
  dlg = ExceptionMsgBox(hglib.tounicode(str(e)), errstring, opts,   parent=None)   dlg.exec_() + except SystemExit: + pass   except Exception, e:   # generic errors before the QApplication is started   if '--debugger' in args: @@ -69,8 +71,6 @@
  opts['error'] = traceback.format_exc()   opts['nofork'] = True   return qtrun(bugrun, u, **opts) - except SystemExit: - pass   except KeyboardInterrupt:   print _('\nCaught keyboard interrupt, aborting.\n')