Skip to content

Commit

Permalink
Update core/views.py
Browse files Browse the repository at this point in the history
Co-Authored-By: Janusz Kowalczyk <[email protected]>
  • Loading branch information
richtier and kowalcj0 authored Mar 20, 2020
1 parent ae2eafb commit 05c4dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def get_serializer_class(self):
def handle_exception(self, exc):
if isinstance(exc, PageNotSerializableError):
# page that exists has been requested, but it's not serializable. E.g, it's a folder page
return Response(status=201)
return Response(status=204)
return super().handle_exception(exc)


Expand Down

0 comments on commit 05c4dc9

Please sign in to comment.