Merge "Make registering error handlers compliant with Flask 0.11"
This commit is contained in:
@@ -37,7 +37,7 @@ def make_json_error(ex):
|
||||
|
||||
|
||||
for code in six.iterkeys(exceptions.default_exceptions):
|
||||
app.error_handler_spec[None][code] = make_json_error
|
||||
app.register_error_handler(code, make_json_error)
|
||||
|
||||
|
||||
@app.route('/' + api_server.VERSION +
|
||||
|
Reference in New Issue
Block a user