diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-06-02 15:54:43 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-06-02 15:54:43 +0000 |
commit | f17a333328112cb21be12e0e547869b725cf2128 (patch) | |
tree | 337f2060d7140a768cbd909a0ac3831167e2bfa5 | |
parent | 1325998e976fea41e3858fbf626af0a5629b4bb5 (diff) | |
parent | f0875734311ee3d4f9ed03cdf855a78df1906e92 (diff) | |
download | designate-f17a333328112cb21be12e0e547869b725cf2128.tar.gz |
Merge "Make registering error handlers compliant with Flask 0.11" into stable/mitaka
-rw-r--r-- | designate/api/v1/__init__.py | 2 |
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. |