Forums

Exception handling not working as expected

Hi,

I have an app running (bottlepy api)

It calls an class which tries to enter data in MySql which fails due to Foreign Key constraint. Although it has been written in try block it always return true instead of error.

It use to work absolutely fine on local

Please suggest.

Can you show us the piece of code that's causing the problem, and the error message from your error log?

Have you reloaded the webapp?

Apologies my mistake, It was an coding error.

Thanks for your time