mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
handle 404 in video item API view
This commit is contained in:
parent
9d73dbc45a
commit
552636d882
@ -86,6 +86,7 @@ class VideoApiView(ApiBaseView):
|
|||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
"""get request"""
|
"""get request"""
|
||||||
self.get_document(video_id)
|
self.get_document(video_id)
|
||||||
|
if self.response.get("data"):
|
||||||
self.process_keys()
|
self.process_keys()
|
||||||
return Response(self.response, status=self.status_code)
|
return Response(self.response, status=self.status_code)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user