[Flask] Raise abort() instead of return abort

Dorian Hoxha dorian.hoxha at gmail.com
Sat Jan 28 11:56:04 EST 2017


Thanks friend!

On Sat, Jan 28, 2017 at 10:05 AM, Alejo Arias <alejoar at gmail.com> wrote:

> Yes, use error handlers: http://flask.pocoo.org/docs/0.12/patterns/
> apierrors/
>
> On Jan 28, 2017 10:03, "Dorian Hoxha" <dorian.hoxha at gmail.com> wrote:
>
>> Hello friends!,
>>
>> Is there something simmilar to "return abort()" but that you can raise ?
>> Basically, raise an exception that in fact is a response which flask
>> understands and returns ?
>>
>> Thank You
>>
>> _______________________________________________
>> Flask mailing list
>> Flask at python.org
>> https://mail.python.org/mailman/listinfo/flask
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20170128/0d619b32/attachment.html>


More information about the Flask mailing list