mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 21:29:24 +01:00
Finally pass the correct object off to strError, I hope.
This commit is contained in:
parent
184c4a97da
commit
4ba5c2af3c
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user