You can reraise exception simply by calling "raise" without params.

12.8.2017 17.54 "Fellipe Henrique" <[email protected]> kirjoitti:

> Hello,
>
> i have these code, for example:
>
> try:
>    x = parse_date('xxxx')
> except TypeError:
>   return False
>
> ​
>
>  It's ok for me code like these.. but, when DEBUG == True, I like to show
> the django default error page...
>
> How can I do that?
>
> Regards
>
> T.·.F.·.A.·.     S+F
> *Fellipe Henrique P. Soares*
>
> e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \
> 's/(.)/chr(ord($1)-2*3)/ge'
> *Fedora Ambassador: https://fedoraproject.org/wiki/User:Fellipeh
> <https://fedoraproject.org/wiki/User:Fellipeh>*
> *Blog: *http:www.fellipeh.eti.br
> *GitHub: https://github.com/fellipeh <https://github.com/fellipeh>*
> *Twitter: @fh_bash*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAF1jwZF%2Bf2KAZjNWA%2BjVnhTKbSj-
> vQQ4WjQRUzsr5vCxrqg4Eg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF1jwZF%2Bf2KAZjNWA%2BjVnhTKbSj-vQQ4WjQRUzsr5vCxrqg4Eg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91ofJjr2ky-xnYsB%2BV6eyTZ8D_0wxsBGK5YwgN6QxWArzEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to