Commit 06550f44 authored by Romain Courteaud's avatar Romain Courteaud

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

parent c8acd609
......@@ -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