diff --git a/fix_nodriver.py b/fix_nodriver.py index aabb64e..1e7c0bb 100644 --- a/fix_nodriver.py +++ b/fix_nodriver.py @@ -10,7 +10,9 @@ env_path = os.getenv("VIRTUAL_ENV") if env_path is None: env_path = Path(os.__file__).parent.parent.parent.as_posix() nodriver_path = Path(env_path + "/lib/python3.11/site-packages/nodriver/cdp/network.py") - +if not nodriver_path.exists(): + msg = f"{nodriver_path} not found" + raise FileNotFoundError(msg) new_cookie_partition_key = """\ if isinstance(json, str):