Skip to content

Crash when YouTube video ID doesn't exist: YouTubeDataAPIError: getting the video title failed #1128

@sentry

Description

@sentry

Sentry Issue: LMS-VIA-59

IndexError: list index out of range
  File "via/services/youtube.py", line 66, in get_video_title
    return self._http_service.get(

YouTubeDataAPIError: getting the video title failed
(7 additional frame(s) were not displayed)
...
  File "via/views/view_video.py", line 25, in youtube
    video_title = youtube_service.get_video_title(video_id)
  File "via/services/youtube.py", line 76, in get_video_title
    raise YouTubeDataAPIError("getting the video title failed") from exc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions