Add AttributeError handling when stopping. #3452
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add AttributeError handling when calling Service.stop. I noticed that this issue occurs after attempting to initialize a webdriver.Chrome instance while 'chromedriver' is not in PATH.
Here is the aforementioned error:
Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
And here is the aforementioned stacktrace:
The proposed changes should not introduce any adverse effects as it will handle similarly to a situation where
self.process
does exist.X
in the preceding checkbox, I verify that I have signed the Contributor License Agreement