From c1bcee9684b23e1910055b75b673bc4b146a3336 Mon Sep 17 00:00:00 2001 From: Stefan Oderbolz Date: Thu, 15 Jan 2015 11:36:15 +0100 Subject: [PATCH] Use str() to get the error message --- ckanext/harvest/harvesters/ckanharvester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/harvest/harvesters/ckanharvester.py b/ckanext/harvest/harvesters/ckanharvester.py index 26251dc..7575bad 100644 --- a/ckanext/harvest/harvesters/ckanharvester.py +++ b/ckanext/harvest/harvesters/ckanharvester.py @@ -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()