```
from tg import abort
abort(404)
```

Regards,
Moritz

Am 12.11.2014 um 16:49 schrieb lebouquetin:
> By the way, what is the right way to manually raise a 404 ? For example
> when I got a "orm_exc.NoResultFound" from SQLA, i'd like to convert it
> (sometimes) in a 404.
> 
> I did not find this in the documentation (only for TG1)
> 
> Damien
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/d/optout.

-- 
Moritz Schlarb

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to