Fix watch_videos endpoint

Playlists created by `watch_videos` do not have an author which caused a crash
previously.
This commit is contained in:
saltycrys 2021-01-04 05:35:59 +01:00
parent 8b56a038b7
commit 36e9fb9d68
2 changed files with 18 additions and 8 deletions

View file

@ -2621,6 +2621,8 @@ end
begin
playlist = get_playlist(PG_DB, plid, locale)
rescue ex : InfoException
next error_json(404, ex)
rescue ex
next error_json(404, "Playlist does not exist.")
end