diff --git a/ckan/controllers/error.py b/ckan/controllers/error.py index dec2f28b022..b1bc2a73b27 100644 --- a/ckan/controllers/error.py +++ b/ckan/controllers/error.py @@ -29,7 +29,9 @@ def document(self): if not original_response: return 'There is no error.' # Bypass error template for API operations. - if original_request and original_request.path.startswith('/api'): + if (original_request and + (original_request.path.startswith('/api') or + original_request.path.startswith('/fanstatic'))): return original_response.body # If the charset has been lost on the middleware stack, use the # default one (utf-8)