421
429
These don't get a traceback unless -Derror was given.
423
431
if 'error' in debug.debug_flags:
426
434
err_file.write("bzr: ERROR: %s\n" % (exc_info[1],))
429
437
def report_bug(exc_info, err_file):
430
438
"""Report an exception that probably indicates a bug in bzr"""
435
traceback.print_exception(exc_type, exc_object, exc_tb, file=err_file)
437
441
err_file.write('bzr %s on python %s (%s)\n' % \