Use str() to get the error message
This commit is contained in:
parent
191c39ce5c
commit
c1bcee9684
|
@ -47,7 +47,7 @@ class CKANHarvester(HarvesterBase):
|
||||||
except urllib2.URLError, e:
|
except urllib2.URLError, e:
|
||||||
raise ContentFetchError(
|
raise ContentFetchError(
|
||||||
'Could not fetch url: %s, error: %s' %
|
'Could not fetch url: %s, error: %s' %
|
||||||
(url, e.reason)
|
(url, str(e))
|
||||||
)
|
)
|
||||||
return http_response.read()
|
return http_response.read()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue