~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2004.1.42.

  • Committer: v.ladeuil+lp at free
  • Date: 2006-11-08 08:22:09 UTC
  • mto: (2145.1.1 keepalive)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: v.ladeuil+lp@free.fr-20061108082209-e02a8d718670dcb8
Fix #70803 by catching the httplib exception.

* bzrlib/transport/http/_urllib2_wrappers.py:
(ConnectionHandler.create_connection): Catch httplib.InvalidURL
and translate it into errors.InvalidURL.

* bzrlib/tests/test_http.py:
(TestHttpUrls.test_invalid_http_urls): Test one more invalid URL.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: