Skip to content

Commit b8aa903

Browse files
committed
[py]: make start_error_message optional again
1 parent 3d6950a commit b8aa903

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/selenium/webdriver/common/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ class Service(ABC):
5353
def __init__(
5454
self,
5555
executable: str,
56-
start_error_message: str,
5756
port: int = 0,
5857
log_file: SubprocessStdAlias = DEVNULL,
5958
env: typing.Optional[typing.Mapping[typing.Any, typing.Any]] = None,
59+
start_error_message: typing.Optional[str] = None,
6060
) -> None:
6161
self.path = executable
6262
self.port = port or utils.free_port()
6363
self.log_file = open(os.devnull, "wb") if not _HAS_NATIVE_DEVNULL and log_file == DEVNULL else log_file
64-
self.start_error_message = start_error_message
64+
self.start_error_message = start_error_message or ""
6565
# Default value for every python subprocess: subprocess.Popen(..., creationflags=0)
6666
self.creation_flags = 0
6767
self.env = env or os.environ

0 commit comments

Comments
 (0)