Commit f12894ab authored by Yusei Tahara's avatar Yusei Tahara

Prevent KeyError on Zope2.7.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18725 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 30f1a690
......@@ -189,6 +189,6 @@ class PDFDocument(Image, ConversionCacheMixin):
def _setFile(self, data, precondition=None):
try:
del self._content_information
except AttributeError:
except (AttributeError, KeyError):
pass
Image._setFile(self, data, precondition)
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