mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-10-18 18:07:25 +02: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:
|
except urllib2.HTTPError, e:
|
||||||
raise WebError, strError(e)
|
raise WebError, strError(e)
|
||||||
except urllib2.URLError, e:
|
except urllib2.URLError, e:
|
||||||
raise WebError, strError(e.reason[1])
|
raise WebError, strError(e.reason)
|
||||||
|
|
||||||
def getUrl(url, size=None, headers=None):
|
def getUrl(url, size=None, headers=None):
|
||||||
"""Gets a page. Returns a string that is the page gotten."""
|
"""Gets a page. Returns a string that is the page gotten."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user