Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: this might be a real exception, but we're continuing anyway #78

Open
MrJonoCES opened this issue Apr 25, 2024 · 0 comments
Open

Comments

@MrJonoCES
Copy link

My script keeps failing, with the following errors. Running it on a mac using telegram as the alerter and using a local json wantlist.

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/discogs_alert/__main__.py", line 279, in <module>
    main()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/discogs_alert/__main__.py", line 274, in main
    schedule.run_pending()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/schedule/__init__.py", line 822, in run_pending
    default_scheduler.run_pending()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/schedule/__init__.py", line 100, in run_pending
    self._run_job(job)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/schedule/__init__.py", line 172, in _run_job
    ret = job.run()
          ^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/schedule/__init__.py", line 693, in run
    ret = self.job_func()
          ^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/discogs_alert/__main__.py", line 272, in <lambda>
    schedule.every(int(60 / frequency)).minutes.do(lambda: da_loop.loop(*args))
                                                           ^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/discogs_alert/loop.py", line 141, in loop
    client_anon.driver.close()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 458, in close
    self.execute(Command.CLOSE)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
    self.error_handler.check_response(response)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: disconnected: not connected to DevTools
  (failed to check if window was closed: disconnected: not connected to DevTools)
  (Session info: chrome-headless-shell=124.0.6367.78)
Stacktrace:
0   chromedriver                        0x0000000100f239c8 chromedriver + 5216712
1   chromedriver                        0x0000000100f1b603 chromedriver + 5182979
2   chromedriver                        0x0000000100a8d527 chromedriver + 406823
3   chromedriver                        0x0000000100a728b6 chromedriver + 297142
4   chromedriver                        0x0000000100a7300f chromedriver + 299023
5   chromedriver                        0x0000000100a8dab0 chromedriver + 408240
6   chromedriver                        0x0000000100a630be chromedriver + 233662
7   chromedriver                        0x0000000100b0ae05 chromedriver + 921093
8   chromedriver                        0x0000000100afb6c8 chromedriver + 857800
9   chromedriver                        0x0000000100acbfe3 chromedriver + 663523
10  chromedriver                        0x0000000100acc92e chromedriver + 665902
11  chromedriver                        0x0000000100ee18e0 chromedriver + 4946144
12  chromedriver                        0x0000000100ee7994 chromedriver + 4970900
13  chromedriver                        0x0000000100ec23de chromedriver + 4817886
14  chromedriver                        0x0000000100ee84a9 chromedriver + 4973737
15  chromedriver                        0x0000000100eb2664 chromedriver + 4752996
16  chromedriver                        0x0000000100f0ab58 chromedriver + 5114712
17  chromedriver                        0x0000000100f0ad17 chromedriver + 5115159
18  chromedriver                        0x0000000100f1b223 chromedriver + 5181987
19  libsystem_pthread.dylib             0x00007ff815ebb18b _pthread_start + 99
20  libsystem_pthread.dylib             0x00007ff815eb6ae3 thread_start + 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant