Skip to content

Commit 0b9f964

Browse files
authored
Merge pull request #4358 from seleniumbase/cdp-mode-patch-109
CDP Mode: Patch 109
2 parents 1d1f0d1 + f2cb897 commit 0b9f964

6 files changed

Lines changed: 10 additions & 6 deletions

File tree

mkdocs_build/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pymdown-extensions>=10.21.3
66
pipdeptree>=2.35.3
77
python-dateutil>=2.8.2
88
Markdown==3.10.2
9-
click==8.4.0
9+
click==8.4.1
1010
ghp-import==2.1.0
1111
watchdog==6.0.0
1212
cairocffi==1.7.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pip>=26.0.1;python_version<"3.10"
2-
pip>=26.1.1;python_version>="3.10"
2+
pip>=26.1.2;python_version>="3.10"
33
packaging>=26.2
44
setuptools~=70.2;python_version<"3.10"
55
setuptools>=82.0.1;python_version>="3.10"

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.49.3"
2+
__version__ = "4.49.4"

seleniumbase/undetected/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def __init__(
305305
self._process_create_time = (
306306
psutil.Process(self._process_pid).create_time()
307307
)
308-
except psutil.NoSuchProcess:
308+
except (psutil.NoSuchProcess, PermissionError):
309309
self._process_create_time = None
310310
service_ = None
311311
log_output = subprocess.PIPE
@@ -415,6 +415,8 @@ def is_running(self):
415415
return process.status() != psutil.STATUS_ZOMBIE
416416
except psutil.NoSuchProcess:
417417
return False
418+
except PermissionError:
419+
return None
418420

419421
def remove_cdc_props_as_needed(self):
420422
cdc_props = self._get_cdc_props()

seleniumbase/undetected/cdp_driver/browser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ def is_running(self):
279279
return process.status() != psutil.STATUS_ZOMBIE
280280
except psutil.NoSuchProcess:
281281
return False
282+
except PermissionError:
283+
return None
282284

283285
def get_rd_host(self):
284286
return self.config.host
@@ -648,7 +650,7 @@ async def start(self=None) -> Browser:
648650
self._process_create_time = (
649651
psutil.Process(self._process_pid).create_time()
650652
)
651-
except psutil.NoSuchProcess:
653+
except (psutil.NoSuchProcess, PermissionError):
652654
self._process_create_time = None
653655
await asyncio.sleep(0.05)
654656
self._http = HTTPApi((self.config.host, self.config.port))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
python_requires=">=3.9",
163163
install_requires=[
164164
'pip>=26.0.1;python_version<"3.10"',
165-
'pip>=26.1.1;python_version>="3.10"',
165+
'pip>=26.1.2;python_version>="3.10"',
166166
'packaging>=26.2',
167167
'setuptools~=70.2;python_version<"3.10"', # Newer ones had issues
168168
'setuptools>=82.0.1;python_version>="3.10"',

0 commit comments

Comments
 (0)