Skip to content

Commit

Permalink
prevent import block on obj-event trigger code
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Dec 10, 2024
1 parent c581009 commit 7dff9c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Products/zms/_importable.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ def recurse_importContent(self, folder):
self.setObjProperty(key, blob, lang)

# Commit object.
self.onChangeObj( self.REQUEST, forced=1)

try:
self.onChangeObj( self.REQUEST, forced=1)
except:
standard.writeBlock( self, '[recurse_importContent]: %s commitObject failed'%(self.getId()))

# Process children.
for ob in self.getChildNodes():
recurse_importContent(ob, folder)
Expand Down

0 comments on commit 7dff9c0

Please sign in to comment.