Skip to content

Commit f895117

Browse files
author
Joel Collins
committed
Removed explicit jsonify
1 parent 1d08d77 commit f895117

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labthings/server/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from flask import jsonify, escape
1+
from flask import escape
22
from werkzeug.exceptions import default_exceptions
33
from werkzeug.exceptions import HTTPException
44

@@ -31,7 +31,7 @@ def std_handler(self, error):
3131
or getattr(getattr(error, "__class__", None), "__name__", None)
3232
or None,
3333
}
34-
return jsonify(response), status_code
34+
return (response, status_code)
3535

3636
def init_app(self, app):
3737
self.app = app

0 commit comments

Comments
 (0)