gyorilab / indra_db

A Database-based knowledge back-end built on and for INDRA. The INDRA Database is a service that can be set up by any user with their own content and knowledge access. Our implementation of the database is the back-end to many of our projects, providing a vast and detailed knowledge base derived from many resources.
GNU General Public License v3.0
16 stars 10 forks source link

Catch error in debug print #204

Closed kkaris closed 2 years ago

kkaris commented 2 years ago

This PR catches a SQLAlchemy error coming from attempting to print out queries. It simply wraps the code that errors in a try-except and ignores any attempts to print the query if it errors.

With this fix, follow-up queries that drills down to the evidence level of statements that previously gave http 500 errors now work for the client.