RequestException is a base class, log the instance

This commit is contained in:
Benjamin Dauvergne 2014-11-07 10:36:22 +01:00
parent 7376062ac5
commit c4c84f0c14
1 changed files with 3 additions and 3 deletions

View File

@ -209,11 +209,11 @@ class Data(object):
self.final_url,
self.slug)
log.warning(error)
except RequestException:
except RequestException, e:
error = 'HTTP Request failed when loading URL ' \
'%s for renderer %r' % (
'%s for renderer %r: %s' % (
self.final_url,
self.slug)
self.slug, e)
log.warning(error)
return None, error