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