Commit f0b20cfc authored by Nicolas Delaby's avatar Nicolas Delaby

Empty data does not mean that cache value was not retrieved

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29024 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a856d0b8
...@@ -219,7 +219,6 @@ class ConversionCacheMixin: ...@@ -219,7 +219,6 @@ class ConversionCacheMixin:
md5sum, mime, data = data_list md5sum, mime, data = data_list
if md5sum != self.getContentMd5(): if md5sum != self.getContentMd5():
raise KeyError, 'Conversion cache key is compromised for %r' % cache_id raise KeyError, 'Conversion cache key is compromised for %r' % cache_id
if data:
return mime, data return mime, data
raise KeyError, 'Conversion cache key does not exists for %r' % cache_id raise KeyError, 'Conversion cache key does not exists for %r' % cache_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment