Commit 41cd35ad authored by Łukasz Nowak's avatar Łukasz Nowak

Fix UnboundLocalError.

parent 7004f5ad
......@@ -169,6 +169,7 @@ else:\n
new_delivery.contentValues(portal_type="Sale Packing List Line")[0].edit(resource=service_relative_url)\n
return new_delivery\n
\n
new_delivery = None\n
if (service_relative_url == setup_service_relative_url):\n
if (state == started):\n
new_delivery = letsclone(hosting_service_relative_url)\n
......@@ -203,6 +204,7 @@ else:\n
instance.edit(causality_value=new_delivery)\n
else:\n
raise NotImplementedError\n
if new_delivery is not None:\n
new_delivery.startBuilding()\n
\n
elif (service_relative_url == cleanup_service_relative_url):\n
......
25
\ No newline at end of file
26
\ 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