Every time a request interacts with the DB via SQLAlchemy and causes an error (e.g. breaking a unique constraint, non-existent column, etc), a RuntimeError is raised by Tornado because the self.finish() method is called twice in Tornado Restless.
This patch assures that in the "patch", "delete", "put", "post", "get" methods call "self.finish(result)" only once.
You can find a detailed description of the causes in tornado-utils#10
Every time a request interacts with the DB via SQLAlchemy and causes an error (e.g. breaking a unique constraint, non-existent column, etc), a RuntimeError is raised by Tornado because the self.finish() method is called twice in Tornado Restless.
This patch assures that in the "patch", "delete", "put", "post", "get" methods call "self.finish(result)" only once.
You can find a detailed description of the causes in tornado-utils#10