Commit ac981a6e authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: do not crash if document is not linked to a project

parent fa6949dd
......@@ -9,6 +9,9 @@ elif project_relation == 'destination_project':
else:
raise ValueError('Unexpected project relation: %s' % project_relation)
if project is None:
return None
project_reference = project.getReference()
member = portal.portal_membership.getAuthenticatedMember()
......
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