Commit 29a64477 authored by Łukasz Nowak's avatar Łukasz Nowak

Do not raise in case if instance is being destroyed.

parent e4bd7efa
......@@ -67,7 +67,12 @@ packing_list = packing_list_line.getParentValue()\n
if packing_list.getSimulationState() == \'delivered\':\n
if context.SoftwareInstance_deliverActiveInstanceUpdatePackingListLine(state_change):\n
return\n
packing_list.deliver()\n
\n
try:\n
context.SoftwareInstance_getInstanceDestroyPackingListLine(state_change)\n
except ValueError:\n
# no instance cleanup, it is ok to deliver\n
packing_list.deliver()\n
</string> </value>
</item>
<item>
......
323
\ No newline at end of file
324
\ 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