handle 404 in video item API view

This commit is contained in:
simon 2022-04-08 17:55:24 +07:00
parent 9d73dbc45a
commit 552636d882
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -86,6 +86,7 @@ class VideoApiView(ApiBaseView):
# pylint: disable=unused-argument
"""get request"""
self.get_document(video_id)
if self.response.get("data"):
self.process_keys()
return Response(self.response, status=self.status_code)