~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin
  • Date: 2010-05-20 17:47:58 UTC
  • mto: This revision was merged to the branch mainline in revision 5246.
  • Revision ID: gzlist@googlemail.com-20100520174758-y5r6uj39r6m32z56
Add comment explaining odd spelling of exception type check

Show diffs side-by-side

added added

removed removed

Lines of Context:
493
493
        report_user_error(exc_info, err_file)
494
494
        return errors.EXIT_ERROR
495
495
    elif isinstance(exc_object, (OSError, IOError)) or (
 
496
        # GZ 2010-05-20: Like (exc_type is pywintypes.error) but avoid import
496
497
        exc_type.__name__ == "error" and exc_type.__module__ == "pywintypes"):
497
498
        # Might be nice to catch all of these and show them as something more
498
499
        # specific, but there are too many cases at the moment.