Finally pass the correct object off to strError, I hope.

This commit is contained in:
James Vega 2004-09-10 01:36:08 +00:00
parent 184c4a97da
commit 4ba5c2af3c

View File

@ -101,7 +101,7 @@ def getUrlFd(url, headers=None):
except urllib2.HTTPError, e:
raise WebError, strError(e)
except urllib2.URLError, e:
raise WebError, strError(e.reason[1])
raise WebError, strError(e.reason)
def getUrl(url, size=None, headers=None):
"""Gets a page. Returns a string that is the page gotten."""