Skip to content

Commit

Permalink
explicitly catch fetch exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxbse committed May 4, 2024
1 parent 7ab363a commit 91364dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/instagram/follower.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 91364dc

Please sign in to comment.