Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Commit

Permalink
rollback on exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
eklitzke committed Jun 23, 2011
1 parent 4394cd0 commit e1d187b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kohlrabi/handlers.py
Expand Up @@ -59,6 +59,7 @@ def render_json(self, obj):
self.write(json.dumps(obj))

def get_error_html(self, status_code, **kwargs):
db.session.rollback()
self.set_header('Content-Type', 'text/plain')
return traceback.format_exc()

Expand Down

0 comments on commit e1d187b

Please sign in to comment.