From cdedf945065ffb3aaec806478dd755b8a243400d Mon Sep 17 00:00:00 2001 From: Mike Terzo Date: Mon, 20 Mar 2017 19:02:00 -0400 Subject: [PATCH] Remove 204-NoContent, Flask, and Werkzeug no longer provide public apis to add additional error code exception handling. --- puppetboard/app.py | 21 --------------------- test/test_app_error.py | 6 ------ test/test_utils.py | 14 -------------- 3 files changed, 41 deletions(-) diff --git a/puppetboard/app.py b/puppetboard/app.py index 9dfe18a..fc45f1c 100644 --- a/puppetboard/app.py +++ b/puppetboard/app.py @@ -17,7 +17,6 @@ from flask import ( ) from pypuppetdb import connect -from pypuppetdb.errors import EmptyResponseError from pypuppetdb.QueryBuilder import * from puppetboard.forms import (CatalogForm, QueryForm) @@ -119,26 +118,6 @@ def utility_processor(): return dict(now=now) -# -# 204 doesn't have a mapping in werkzeug, we need to define a custom -# class and then set it to the mappings. -# -class NoContent(ex.HTTPException): - code = 204 - description = '

No content