/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 bzrlib/plugins/launchpad/lp_registration.py

  • Committer: Daniel Watkins
  • Date: 2008-03-03 17:13:31 UTC
  • mto: This revision was merged to the branch mainline in revision 3271.
  • Revision ID: d.m.watkins@warwick.ac.uk-20080303171331-53ytk7dylv264zqn
Replaced another assert.

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
                 author_email='',
206
206
                 product_name='',
207
207
                 ):
208
 
        assert branch_url, 'branch_url %r is invalid' % branch_url
 
208
        if not branch_url:
 
209
            raise errors.InvalidURL(branch_url, "You need to specify a non-empty branch URL.")
209
210
        self.branch_url = branch_url
210
211
        if branch_name:
211
212
            self.branch_name = branch_name