diff --git a/openerp/http.py b/openerp/http.py index 7c4fbc72067..c6075baf281 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -284,7 +284,7 @@ def route(route=None, **kw): elif isinstance(response, basestring): return Response(response) else: - raise "TODO: shall we autorise this ?" + _logger.warn(" returns an invalid response type for an http request" % (f.__module__, f.__name__)) return response response_wrap.routing = routing response_wrap.original_func = f