Commit d0e5e870 authored by Łukasz Nowak's avatar Łukasz Nowak

Catch in correct moment.

parent 5fbb093e
...@@ -66,15 +66,15 @@ for sale_order_line in portal.portal_catalog(\n ...@@ -66,15 +66,15 @@ for sale_order_line in portal.portal_catalog(\n
except ValidationFailed:\n except ValidationFailed:\n
# order not ready yet\n # order not ready yet\n
continue\n continue\n
except Unauthorized:\n
# user has bad balance\n
continue\n
else:\n else:\n
try:\n try:\n
sale_order.confirm()\n sale_order.confirm()\n
except ValueError:\n except ValueError:\n
# It was not possible to find free Computer Partition\n # It was not possible to find free Computer Partition\n
continue\n continue\n
except Unauthorized:\n
# user has bad balance\n
continue\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
544 545
\ No newline at end of file \ 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