/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-11 12:46:45 UTC
  • mfrom: (7511.1.1 actions-no-fork)
  • Revision ID: breezy.the.bot@gmail.com-20200611124645-4lx66gps99i0hmzh
Avoid using fork when running the testsuite in github actions.

Merged from https://code.launchpad.net/~jelmer/brz/actions-no-fork/+merge/385565

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