/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/plugin.py

  • Committer: Jelmer Vernooij
  • Date: 2017-06-10 14:01:07 UTC
  • mto: This revision was merged to the branch mainline in revision 6680.
  • Revision ID: jelmer@jelmer.uk-20170610140107-man7tz8yv4czpyr1
Remove breezy.api.

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
        return
404
404
    try:
405
405
        __import__(_MODULE_PREFIX + name)
406
 
    except errors.IncompatibleAPI as e:
 
406
    except errors.IncompatibleVersion as e:
407
407
        warning_message = (
408
 
            "Unable to load plugin %r. It supports API version "
409
 
            "%s of module %s but the minimum exported version is %s, and "
410
 
            "the maximum is %s" %
411
 
            (name, e.wanted, e.api, e.minimum, e.current))
 
408
            "Unable to load plugin %r. It supports %s "
 
409
            "versions %r but the current version is %s" %
 
410
            (name, e.api.__name__, e.wanted, e.current))
412
411
        return record_plugin_warning(warning_message)
413
412
    except Exception as e:
414
413
        trace.log_exception_quietly()