Skip to content

Commit

Permalink
Merge pull request psf#93 from yech1990/master
Browse files Browse the repository at this point in the history
add args '--no-sandbox'
  • Loading branch information
kennethreitz committed Mar 4, 2018
2 parents 2132ee2 + b1e353d commit 43d88a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def render(self, retries: int = 8, script: str = None, wait: float = 0.2, scroll
"""
async def _async_render(*, url: str, script: str = None, scrolldown, sleep: int, wait: float, reload, content: Optional[str], timeout: Union[float, int]):
try:
browser = pyppeteer.launch(headless=True)
browser = pyppeteer.launch(headless=True, args=['--no-sandbox'])
page = await browser.newPage()

# Wait before rendering the page, to prevent timeouts.
Expand Down

0 comments on commit 43d88a3

Please sign in to comment.