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