diff --git a/product/ERP5OOo/OOoUtils.py b/product/ERP5OOo/OOoUtils.py index a45d2555239ccd7404d9cd3c73a417695722c080..24750283006ecc96eaeb9f9c9034a9b755980b85 100644 --- a/product/ERP5OOo/OOoUtils.py +++ b/product/ERP5OOo/OOoUtils.py @@ -27,6 +27,8 @@ # ############################################################################## +import sys + from Products.PythonScripts.Utility import allow_class from ZPublisher.HTTPRequest import FileUpload from xml.dom.ext.reader import PyExpat @@ -42,6 +44,7 @@ import imghdr import random from Products.ERP5Type import Permissions from zLOG import LOG +from zLOG import PROBLEM from OFS.Image import Pdata @@ -242,6 +245,7 @@ class OOoParser: try: oo_unzipped = ZipFile(file_descriptor, mode="r") except: + LOG('ERP5OOo', PROBLEM, 'Error in openFile', error=sys.exc_info()) raise CorruptedOOoFile() # Test the integrity of the file if oo_unzipped.testzip() != None: