Use str() to get the error message

This commit is contained in:
Stefan Oderbolz 2015-01-15 11:36:15 +01:00
parent 191c39ce5c
commit c1bcee9684
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class CKANHarvester(HarvesterBase):
except urllib2.URLError, e:
raise ContentFetchError(
'Could not fetch url: %s, error: %s' %
(url, e.reason)
(url, str(e))
)
return http_response.read()