That happens when the cast fails, so presumably either there is no URL arg 
(which results in a value of None) or the value of the first arg cannot be 
cast to an integer. Note, you can also specify an "otherwise" argument, 
which can either be a URL for redirect upon failure or a function that gets 
called upon failure (which itself may redirect or return an error).

Note, because of the "otherwise" argument, it is no longer necessary to use 
the "or redirect(...)" construction -- instead, just do:

db.some_table(request.args(0, cast=int, otherwise=some_URL))

Anthony

On Friday, January 16, 2015 at 2:58:29 PM UTC-5, Dmitry Ermolaev wrote:
>
> not worked... I see instead on error :
> 404 NOT FOUND
>
> Why I can't rise some error message?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to