Commit c5dfba69 authored by jim's avatar jim

Hide some irrelevent error information to work around the fact that on

windows, urllib raises an invalid ioerror.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@103359 62d5b8a3-27da-0310-9561-8e5933582275
parent 7f3042fb
...@@ -58,10 +58,10 @@ We are responsible for cleaning up temporary files behind us: ...@@ -58,10 +58,10 @@ We are responsible for cleaning up temporary files behind us:
When trying to access a file that doesn't exist, we'll get an exception: When trying to access a file that doesn't exist, we'll get an exception:
>>> download(server_url+'not-there') >>> try: download(server_url+'not-there') # doctest: +ELLIPSIS
Traceback (most recent call last): ... except: print 'download error'
IOError: ('http error', 404, 'Not Found', ... else: print 'woops'
<httplib.HTTPMessage instance at 0xa0ffd2c>) download error
Downloading a local file doesn't produce a temporary file but simply returns Downloading a local file doesn't produce a temporary file but simply returns
the local file itself: the local file itself:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment