Commit ef2339dd authored by Ivan Tyagov's avatar Ivan Tyagov

Raise exception if impossible to conver to base format (OOOd). Because...

Raise exception if impossible to conver to base format (OOOd). Because convertToBaseFormat is usually called upon indexing do NOT call workflow script processFile (for OOOd  failure) because it will trigger another object indexing activity, thus creating an infinitive loop and growing ZODB.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14470 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2a494c80
......@@ -1138,13 +1138,16 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
msg = ''
except ConversionError, e:
msg = 'Problem: %s' % (str(e) or 'undefined.')
self.processFile(comment=msg)
#self.processFile(comment=msg)
raise ConversionError, msg
except Fault, e:
msg = 'Problem: %s' % (repr(e) or 'undefined.')
self.processFile(comment=msg)
#self.processFile(comment=msg)
raise Fault, msg
except socket.error, e:
msg = 'Problem: %s' % (repr(e) or 'undefined.')
self.processFile(comment=msg)
#self.processFile(comment=msg)
raise socket.error, msg
return msg
def _convertToBaseFormat(self):
......
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