Changeset e87440caa0a7…
Parent 0a803db2d89b…
by
Changes to 2 files · Browse files at e87440caa0a7 Showing diff from parent 0a803db2d89b Diff from another changeset...
@@ -38,6 +38,8 @@ _ui = ui.ui()
capt = _ui.configbool('tortoisehg', 'stderrcapt', True)
+errors = ('Traceback', 'TypeError', 'NameError', 'AttributeError')
+
if not capt or 'THGDEBUG' in os.environ or '--profile' in sys.argv:
sys.exit(tortoisehg.hgqt.run.dispatch(sys.argv[1:]))
else:
@@ -50,7 +52,7 @@ sys.stderr = origstderr
mystderr.seek(0)
for l in mystderr.readlines():
- if l.startswith(('Traceback', 'TypeError', 'NameError')):
+ if l.startswith(errors):
from tortoisehg.hgqt.bugreport import run
from tortoisehg.hgqt.run import qtrun
error = 'Recoverable runtime error (stderr):\n'
|
@@ -318,6 +318,7 @@ bugreport = run(ui, **opts)
bugreport.show()
mainapp.exec_()
+ mainapp = None
def thgstatus(ui, *pats, **opts):
"""update TortoiseHg status cache"""
|
Loading...