renderers/data_source: fix resolve_file_url return value (fixes #5092)

URL resolvers must return a stream and an error code.
This commit is contained in:
Benjamin Dauvergne 2014-07-22 10:07:03 +02:00
parent e4aca152c8
commit 170ef69a13
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class Data(object):
def resolve_file_url(self):
path = self.url[7:]
try:
return file(path)
return file(path), None
except Exception:
log.exception('unable to resolve file URL: %r', self.url)