/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/propose/gitlabs.py

  • Committer: Jelmer Vernooij
  • Date: 2019-04-27 17:50:02 UTC
  • mto: This revision was merged to the branch mainline in revision 7317.
  • Revision ID: jelmer@jelmer.uk-20190427175002-pwgtgdjunc7sdy4f
Fix dealing with non-gitlab sites.

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
            (host, project, merge_id) = parse_gitlab_merge_request_url(url)
364
364
        except NotGitLabUrl:
365
365
            raise UnsupportedHoster(url)
366
 
        except NotMergeRequestUrl:
367
 
            if self.gl.url == ('https://%s' % host):
 
366
        except NotMergeRequestUrl as e:
 
367
            if self.gl.url == ('https://%s' % e.host):
368
368
                raise
369
369
            else:
370
370
                raise UnsupportedHoster(url)