From 91364dc6cda2a9836458e4443ac08cec58c93e43 Mon Sep 17 00:00:00 2001 From: Fabian Haas <29468630+hfxbse@users.noreply.github.com> Date: Sat, 4 May 2024 15:14:29 +0200 Subject: [PATCH] explicitly catch fetch exceptions --- src/instagram/follower.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/instagram/follower.ts b/src/instagram/follower.ts index df1817c..ab11254 100644 --- a/src/instagram/follower.ts +++ b/src/instagram/follower.ts @@ -312,7 +312,11 @@ async function createFollowerGraph({controller, limits, graph, session, includeF } } - await Promise.all([followers(), (includeFollowing ? following() : Promise.resolve())]) + try { + await Promise.all([followers(), (includeFollowing ? following() : Promise.resolve())]) + } catch (e) { + controller.error(e) + } done.add(task); });