Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@
browser.close()
sys.exit('You have tried to read this from too many computers or web browsers recently, and will need to wait up to 24 hours before returning to this book.')

# retrieve fonts
font_style = page.locator('#fontfaces').inner_html()

# retrieve fonts
try:
font_style = page.locator('#fontfaces').inner_html()
except:
font_style = ""
# open display menu
page.locator('.icon-ic_displaysettings').wait_for(state='visible')
page.evaluate("() => document.querySelector('.icon-ic_displaysettings').click()")
Expand Down