skadogg / personal-tv-guide

Python-based JustWatch scraper
GNU General Public License v3.0
6 stars 7 forks source link

🐛 Failure when button doesn't click #103

Closed skadogg closed 6 months ago

skadogg commented 6 months ago

Ran the code on a different computer. It was going great for a while, but then it failed after resetting the connection (close & quit, then get). Hopefully, this is as simple as a try-catch block.


DevTools listening on ws://127.0.0.1:64647/devtools/browser/6d3f7a76-d52f-4312-a659-2e5069579f9b
<■■■⚠︎                                    > (!) 74/908 [8%] in 6:00.6 (0.21/s)
Traceback (most recent call last):
  File "c:\Users\gunner\Documents\Git\personal-tv-guide\run.py", line 32, in <module>
    modules.justwatch.scrape_justwatch('Movies')
  File "c:\Users\gunner\Documents\Git\personal-tv-guide\modules\justwatch.py", line 177, in scrape_justwatch
    driver = reset_site_conn(driver)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\gunner\Documents\Git\personal-tv-guide\modules\justwatch.py", line 346, in reset_site_conn
    modules.auto_sign_in.click_through_privacy_model(driver)
  File "c:\Users\gunner\Documents\Git\personal-tv-guide\modules\auto_sign_in.py", line 67, in click_through_privacy_model
    save_settings_button.click()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'click'
PS C:\Users\gunner\Documents\Git\personal-tv-guide>`
skadogg commented 6 months ago

I think this was due to transient network issues. It doesn't seem to be happening anymore.