You are deliberately suppressing the error message with your exception
handler in the new_company_generation function. Try getting rid of the
"try:" and "exception Exception:" lines, then you should see the full
error message, either in your web browser, or on the console where you
are running the flask application.

Simon

On Mon, Jul 21, 2014 at 10:57 AM, 'Frank Liou' via sqlalchemy
<sqlalchemy@googlegroups.com> wrote:
>> i use "try"
>
>
>   if do not return "Success"
>   it mean have not session.add
>>
>>
>>
>> @app.route('/company/<business_account_number>/<address>/<company_status>/<company_captial_amount>/<business_description>/<company_name>',
>> methods=['POST'])
>> def
>> new_company_generation(business_account_number,address,company_status,company_captial_amount,business_description,company_name):
>>     try:
>>         company = Company()
>>
>> company.create_new_company(business_account_number,address,company_status,company_captial_amount,business_description,company_name)
>>         return "Success!"
>>     except Exception:
>>         return "Failed!"
>
> --
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

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

Reply via email to