From 06bed9de6c9892ad16a9771568e35e969971630f Mon Sep 17 00:00:00 2001 From: Damien Date: Tue, 5 Jul 2016 17:14:55 +0200 Subject: [PATCH] [Fixes #2291] Code cleanup --- akvo/rest/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akvo/rest/filters.py b/akvo/rest/filters.py index a1a3ad3b02..885f97916a 100644 --- a/akvo/rest/filters.py +++ b/akvo/rest/filters.py @@ -66,7 +66,7 @@ def eval_query_value(request, key): queryset = getattr(queryset, param)(*args_or_kwargs) except FieldError as e: - raise APIException("Error in request. Error msg:\n {message}".format(message=e.message)) + raise APIException("Error in request: {message}".format(message=e.message)) # support for Q expressions, limited to OR-concatenated filtering if request.QUERY_PARAMS.get('q_filter1', None):