From f12894ab8dcebaae49eb025da40767bcad3f76e5 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Wed, 16 Jan 2008 09:38:53 +0000 Subject: [PATCH] Prevent KeyError on Zope2.7. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18725 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/PDFDocument.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/PDFDocument.py b/product/ERP5/Document/PDFDocument.py index 2703865915..7cc0b94974 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) -- 2.30.9