Commit be1f8b18 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_ui_jio_test: Skip to remove if document is None.

parent 0bd72b31
......@@ -3,7 +3,8 @@ portal = context.getPortalObject()
for cr in portal.portal_catalog(reference=["testSlapOSJSSubscribeUser", "demo_functional_user"],
portal_type="Credential Request"):
related_person = cr.getDestinationDecisionValue()
portal.person_module.manage_delObjects(ids=[related_person.getId()])
if related_person is not None:
portal.person_module.manage_delObjects(ids=[related_person.getId()])
event_list = cr.getFollowUpRelatedValueList()
if len(event_list):
portal.event_module.manage_delObjects(ids=[e.getId() for e in event_list])
......
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