diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-06-02 15:54:58 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-06-02 15:54:58 +0000 |
commit | 906397d576772a4d113df4923375faa8168f1eea (patch) | |
tree | 6f2a9790e7237190ce3980c3dfb48f869d2e5d6c | |
parent | 27999cfa2dab6c6e02dc6b3d793bb360fbcdc79b (diff) | |
parent | 58f3a600862b51b19c3b789790157b07fff67e49 (diff) | |
download | designate-906397d576772a4d113df4923375faa8168f1eea.tar.gz |
Merge "Make registering error handlers compliant with Flask 0.11" into stable/liberty
-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. |