From 2f5f4d5d662ea9d00429ef449dd31881388a01fb Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 1 Apr 2015 15:34:07 -0400 Subject: [PATCH] Make sure to import the exception decorators so that we raise 4xx errors to Docker instead of 500s --- registry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/registry.py b/registry.py index 2669ec1c1..4205fc635 100644 --- a/registry.py +++ b/registry.py @@ -3,6 +3,9 @@ import logging.config from app import app as application +# Note: We need to import this module to make sure the decorators are registered. +import endpoints.decorated + from endpoints.index import index from endpoints.tags import tags from endpoints.registry import registry