Skip to content

Commit

Permalink
fix page_id = None
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewZMSU committed Oct 14, 2024
1 parent dd6d028 commit abf780c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scrapypuppeteer/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,17 @@ def follow_all(
if not isinstance(action, GoTo):
raise TypeError(f"Expected GoTo, got {type(action)}")

page_id = self.page_id # Substitution of page_id in order to create new page
self.page_id = None

yield from (
self.follow(
action,
close_page=close_page,
accumulate_meta=accumulate_meta,
page_id=None, # Substitution of page_id in order to create new page
**kwargs,
)
for action in actions
)

self.page_id = page_id


class PuppeteerHtmlResponse(PuppeteerResponse, HtmlResponse):
"""
Expand Down

0 comments on commit abf780c

Please sign in to comment.