fix: ruff PLC0207 missing-maxsplit-arg

This commit is contained in:
sebthom
2025-06-09 17:15:49 +02:00
committed by Sebastian Thomschke
parent 67805e633f
commit 3978d85cb4
2 changed files with 13 additions and 13 deletions

View File

@@ -87,9 +87,9 @@ class WebScrapingMixin:
remote_port = 0
for arg in self.browser_config.arguments:
if arg.startswith("--remote-debugging-host="):
remote_host = arg.split("=", 2)[1]
remote_host = arg.split("=", maxsplit = 1)[1]
if arg.startswith("--remote-debugging-port="):
remote_port = int(arg.split("=", 2)[1])
remote_port = int(arg.split("=", maxsplit = 1)[1])
if remote_port > 0:
LOG.info("Using existing browser process at %s:%s", remote_host, remote_port)