Skip to content

Commit

Permalink
[#2770] Return default error page on fanstatic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Dec 3, 2015
1 parent 4dbfa46 commit 25f5edc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/controllers/error.py
Expand Up @@ -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)
Expand Down

0 comments on commit 25f5edc

Please sign in to comment.