mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Handling ajax errors in json views.
This commit is contained in:
parent
1a5d440582
commit
108fcd78da
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def json_view(func):
|
|||
def json_response(request, response=None):
|
||||
code = 200
|
||||
|
||||
if isinstance(response, HttpResponseForbidden):
|
||||
if isinstance(response, HttpResponseForbidden) or isinstance(response, HttpResponse):
|
||||
return response
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue