~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-11-03 02:35:48 UTC
  • mfrom: (2067.3.7 cleanup-errors)
  • Revision ID: pqm@pqm.ubuntu.com-20061103023548-12e702bb911c4be2
(mbp) deprecate BzrNewError, change to using .internal_error on exceptions, etc

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
        print >>err_file, "bzr: broken pipe"
273
273
    elif isinstance(exc_object, KeyboardInterrupt):
274
274
        print >>err_file, "bzr: interrupted"
275
 
    elif getattr(exc_object, 'is_user_error', False):
 
275
    elif not getattr(exc_object, 'internal_error', True):
276
276
        report_user_error(exc_info, err_file)
277
277
    elif isinstance(exc_object, (OSError, IOError)):
278
278
        # Might be nice to catch all of these and show them as something more