summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-02 15:54:43 +0000
committerGerrit Code Review <review@openstack.org>2016-06-02 15:54:43 +0000
commitf17a333328112cb21be12e0e547869b725cf2128 (patch)
tree337f2060d7140a768cbd909a0ac3831167e2bfa5
parent1325998e976fea41e3858fbf626af0a5629b4bb5 (diff)
parentf0875734311ee3d4f9ed03cdf855a78df1906e92 (diff)
downloaddesignate-f17a333328112cb21be12e0e547869b725cf2128.tar.gz
Merge "Make registering error handlers compliant with Flask 0.11" into stable/mitaka
-rw-r--r--designate/api/v1/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/designate/api/v1/__init__.py b/designate/api/v1/__init__.py
index 812d6767..d285b746 100644
--- a/designate/api/v1/__init__.py
+++ b/designate/api/v1/__init__.py
@@ -100,7 +100,7 @@ def factory(global_config, **local_conf):
return response
for code in six.iterkeys(wexceptions.default_exceptions):
- app.error_handler_spec[None][code] = _json_error
+ app.register_error_handler(code, _json_error)
# TODO(kiall): Ideally, we want to make use of the Plugin class here.
# This works for the moment though.