Commit fbbd2a24 authored by Jérome Perrin's avatar Jérome Perrin

do not catch ValueError


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5268 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2029b82a
......@@ -106,13 +106,6 @@ except FormValidationError, validation_errors:\n
field_errors = form.ErrorFields(validation_errors)\n
request.set(\'field_errors\', field_errors)\n
return form(request)\n
except ValueError, value_error:\n
# Pack errors into the request\n
redirect_url = \'%s/%s?%s%s\' % ( context.absolute_url(), form_id\n
, \'portal_status_message=\',value_error\n
)\n
\n
context.REQUEST[ \'RESPONSE\' ].redirect( redirect_url )\n
\n
else:\n
# We will check if there\'s an error_message\n
......@@ -205,11 +198,9 @@ else:\n
<string>_apply_</string>
<string>validation_errors</string>
<string>field_errors</string>
<string>ValueError</string>
<string>value_error</string>
<string>redirect_url</string>
<string>history_data</string>
<string>AttributeError</string>
<string>redirect_url</string>
<string>last_history_data</string>
<string>error_message</string>
</tuple>
......
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