Skip to content

Commit e1e8c55

Browse files
committed
Return after handling postPage error
1 parent 86ae474 commit e1e8c55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/instagram.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ export class Instagram<PostType> {
577577
post,
578578
retries,
579579
);
580+
return;
580581
}
581582

582583
// Load data from memory
@@ -605,6 +606,7 @@ export class Instagram<PostType> {
605606
post,
606607
retries,
607608
);
609+
return;
608610
}
609611

610612
// Close page
@@ -621,11 +623,9 @@ export class Instagram<PostType> {
621623
post,
622624
retries,
623625
);
624-
}
625-
626-
if (!parsed) {
627626
return;
628627
}
628+
629629
await this.executePlugins("postPage", parsed);
630630
await this.addToPostBuffer(parsed);
631631
}

0 commit comments

Comments
 (0)