In data_source renderer hide and log exceptions in update_content() (fixes #5584)

This commit is contained in:
Benjamin Dauvergne 2014-09-25 12:01:03 +02:00
parent db31f6387d
commit f96099ed48
1 changed files with 6 additions and 1 deletions

View File

@ -220,8 +220,13 @@ class Data(object):
log.warning(error)
return None, error
def update_content(self):
try:
return self.update_content_real()
except:
log.exception('exception while updating content')
def update_content_real(self):
if self.url.startswith('http'):
stream, error = self.resolve_http_url()
elif self.url.startswith('file:'):