remove useless begin..rescue

This commit is contained in:
Fijxu 2026-08-17 02:58:57 -04:00
parent e2083c1edd
commit 3c32f49617
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -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,