diff --git a/product/ERP5/Document/PDFDocument.py b/product/ERP5/Document/PDFDocument.py index 2703865915810ef072bb96f98b25fa46553c3b65..7cc0b949749d8423eb10e0cdfa0a1100fb817bc3 100644 --- a/product/ERP5/Document/PDFDocument.py +++ b/product/ERP5/Document/PDFDocument.py @@ -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)