From 0ae871fed3d3d6bfbaf669aee8c873341d50e6be Mon Sep 17 00:00:00 2001 From: jdholtz Date: Wed, 16 Aug 2023 20:43:16 -0500 Subject: [PATCH] Fix architecture checks for Mac devices --- undetected_chromedriver/patcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/undetected_chromedriver/patcher.py b/undetected_chromedriver/patcher.py index 2d9d97f..6ff765e 100644 --- a/undetected_chromedriver/patcher.py +++ b/undetected_chromedriver/patcher.py @@ -120,7 +120,8 @@ class Patcher(object): The Mac platform name changes based on the architecture and Chromedriver version desired """ platform_name = "mac" - is_arm_arch = any(["aarch64", "arm"] in platform.machine()) + # Matches the platform as a substring so values like 'arm64' and 'armv7l' work + is_arm_arch = any(p in platform.machine() for p in ["aarch64", "arm"]) if self.is_old_chromedriver: if is_arm_arch: