From b11f26037717aa3eec433df849c7cffe0b703dde Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 15 Jul 2022 00:23:55 -0400 Subject: [PATCH] Log error from reputation in build segment groups Maybe help with #483 --- src/routes/getSkipSegments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getSkipSegments.ts b/src/routes/getSkipSegments.ts index 660ea69..457c2b6 100644 --- a/src/routes/getSkipSegments.ts +++ b/src/routes/getSkipSegments.ts @@ -279,7 +279,7 @@ async function chooseSegments(videoID: VideoID, service: Service, segments: DBSe //Segments with less than -1 votes are already ignored before this function is called async function buildSegmentGroups(segments: DBSegment[]): Promise { const reputationPromises = segments.map(segment => - segment.userID ? getReputation(segment.userID) : null); + segment.userID ? getReputation(segment.userID).catch((e) => Logger.error(e)) : null); //Create groups of segments that are similar to eachother //Segments must be sorted by their startTime so that we can build groups chronologically: