mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-07 09:33:04 -05:00
remove useless begin..rescue
This commit is contained in:
parent
e2083c1edd
commit
3c32f49617
@ -159,12 +159,7 @@ def fetch_channel(ucid, pull_all_videos : Bool)
|
|||||||
LOGGER.debug("fetch_channel: #{ucid}")
|
LOGGER.debug("fetch_channel: #{ucid}")
|
||||||
LOGGER.trace("fetch_channel: #{ucid} : pull_all_videos = #{pull_all_videos}")
|
LOGGER.trace("fetch_channel: #{ucid} : pull_all_videos = #{pull_all_videos}")
|
||||||
|
|
||||||
# Deleted channels raise a `InfoException` exception.
|
channel = get_about_info(ucid)
|
||||||
begin
|
|
||||||
channel = get_about_info(ucid)
|
|
||||||
rescue ex
|
|
||||||
raise ex
|
|
||||||
end
|
|
||||||
|
|
||||||
author = channel.author
|
author = channel.author
|
||||||
|
|
||||||
@ -187,7 +182,7 @@ def fetch_channel(ucid, pull_all_videos : Bool)
|
|||||||
id: video.id,
|
id: video.id,
|
||||||
title: video.title,
|
title: video.title,
|
||||||
published: video.published,
|
published: video.published,
|
||||||
updated: Time.utc,
|
updated: video.updated,
|
||||||
ucid: video.ucid,
|
ucid: video.ucid,
|
||||||
author: video.author,
|
author: video.author,
|
||||||
length_seconds: video.length_seconds,
|
length_seconds: video.length_seconds,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user