Skip to content

refactor: improve error handling in shutdown_chrome function#25

Open
Aermberry wants to merge 1 commit into
lcandy2:mainfrom
Aermberry:fix
Open

refactor: improve error handling in shutdown_chrome function#25
Aermberry wants to merge 1 commit into
lcandy2:mainfrom
Aermberry:fix

Conversation

@Aermberry
Copy link
Copy Markdown

I made some adjustments based on the following errors for Chrome Version 147.0.7727.117 (Official Build) (64-bit):

uv run main.py
Traceback (most recent call last):
  File "E:\Home\desktop\enable-chrome-ai\main.py", line 159, in <module>
    main()
    ~~~~^^
  File "E:\Home\desktop\enable-chrome-ai\main.py", line 137, in main
    terminated_chromes = shutdown_chrome()
  File "E:\Home\desktop\enable-chrome-ai\main.py", line 54, in shutdown_chrome
    elif process.parent() is not None and process.parent().name() == process.name():
                                          ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'

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

Successfully merging this pull request may close these issues.

2 participants