summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/tags_resource.py
diff options
context:
space:
mode:
authorFelix Hammerl <fhammerl@thoughtworks.com>2016-04-13 16:25:28 +0200
committerFelix Hammerl <fhammerl@thoughtworks.com>2016-04-13 16:25:28 +0200
commita919d12ddb7c688c2e7fb01b8768dab8be9f5c39 (patch)
tree7afe6db219c2474f66ccaa5a67afbff6e3ee0d1e /service/pixelated/resources/tags_resource.py
parent8c3be1c268626c3ae4eae2ec0fe5d6eadc7c340a (diff)
Issue #431: Review
* Remove GenericDeferredErrorHandler class * Convert static method generic_error_handling to function instead
Diffstat (limited to 'service/pixelated/resources/tags_resource.py')
-rw-r--r--service/pixelated/resources/tags_resource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/resources/tags_resource.py b/service/pixelated/resources/tags_resource.py
index 26da9dae..4cea4ca7 100644
--- a/service/pixelated/resources/tags_resource.py
+++ b/service/pixelated/resources/tags_resource.py
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
-from pixelated.resources import respond_json_deferred, BaseResource
+from pixelated.resources import respond_json_deferred, BaseResource, handle_error_deferred
from twisted.internet.threads import deferToThread
from twisted.web.server import NOT_DONE_YET
@@ -33,6 +33,6 @@ class TagsResource(BaseResource):
d = deferToThread(lambda: _search_engine.tags(query=query, skip_default_tags=skip_default_tags))
d.addCallback(lambda tags: respond_json_deferred(tags, request))
- d.addErrback(self.generic_error_handling, request)
+ d.addErrback(handle_error_deferred, request)
return NOT_DONE_YET