/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/plugins/github/cmds.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-01 21:57:00 UTC
  • mfrom: (7490.39.3 move-launchpad)
  • Revision ID: breezy.the.bot@gmail.com-20200601215700-joxuzo6w172gq74v
Move launchpad hoster support to the launchpad plugin.

Merged from https://code.launchpad.net/~jelmer/brz/move-launchpad/+merge/384931

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
            if errs:
53
53
                err_code = errs[0].get('code')
54
54
                if err_code == u'already_exists':
55
 
                    raise errors.CommandError('token already exists')
56
 
            raise errors.CommandError(e.data['message'])
 
55
                    raise errors.BzrCommandError('token already exists')
 
56
            raise errors.BzrCommandError(e.data['message'])
57
57
        # TODO(jelmer): This should really use something in
58
58
        # AuthenticationConfig
59
59
        from .github import store_github_token