Skip to content

Commit

Permalink
Removed explicit jsonify
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 9, 2020
1 parent 1d08d77 commit f895117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions labthings/server/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask import jsonify, escape
from flask import escape
from werkzeug.exceptions import default_exceptions
from werkzeug.exceptions import HTTPException

Expand Down Expand Up @@ -31,7 +31,7 @@ def std_handler(self, error):
or getattr(getattr(error, "__class__", None), "__name__", None)
or None,
}
return jsonify(response), status_code
return (response, status_code)

def init_app(self, app):
self.app = app
Expand Down

0 comments on commit f895117

Please sign in to comment.