/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/log.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-17 02:01:24 UTC
  • mto: This revision was merged to the branch mainline in revision 7187.
  • Revision ID: jelmer@jelmer.uk-20181117020124-c5k7elj7m93kwggt
Print exceptions when custom handlers raise exceptions rather than aborting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
    errors,
76
76
    registry,
77
77
    revisionspec,
 
78
    trace,
78
79
    )
79
80
from .osutils import (
80
81
    format_date,
1522
1523
        """
1523
1524
        lines = self._foreign_info_properties(revision)
1524
1525
        for key, handler in properties_handler_registry.iteritems():
1525
 
            lines.extend(self._format_properties(handler(revision)))
 
1526
            try:
 
1527
                lines.extend(self._format_properties(handler(revision)))
 
1528
            except BaseException:
 
1529
                trace.log_exception_quietly()
 
1530
                trace.print_exception(sys.exc_info(), self.to_file)
1526
1531
        return lines
1527
1532
 
1528
1533
    def _foreign_info_properties(self, rev):