Skip to content

Commit

Permalink
[py]: bugfix iterating stdout twice instead of stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Oct 2, 2022
1 parent e2add16 commit c59a267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _terminate_process(self) -> None:
terminate. Terminating does not raise itself if something has gone
wrong but (currently) silently ignores errors here."""
try:
stdin, stdout, stderr = self.process.stdin, self.process.stdout, self.process.stdout
stdin, stdout, stderr = self.process.stdin, self.process.stdout, self.process.stderr
for stream in stdin, stdout, stderr:
with contextlib.suppress(AttributeError):
stream.close()
Expand Down

0 comments on commit c59a267

Please sign in to comment.