Commit 498bfa5c authored by Łukasz Nowak's avatar Łukasz Nowak

Do no fail in case of Person.

parent bf825912
......@@ -70,6 +70,8 @@ def assignComputerPartition(software_instance):\n
hosting_subscription = software_instance.getSpecialiseValue(\n
portal_type=\'Hosting Subscription\')\n
person = hosting_subscription.getDestinationSectionValue(portal_type=\'Person\')\n
if person is None:\n
raise ValueError(\'%s does not have person related\' % hosting_subscription.getRelativeUrl())\n
if not person.Person_isAllowedToAllocate():\n
raise Unauthorized(\'Allocation disallowed\')\n
\n
......
109
\ No newline at end of file
110
\ No newline at end of file
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