From 95b80a03633d67862b4aefe2613e498e2b65ce03 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Thu, 10 Oct 2024 20:34:10 +0700 Subject: [PATCH] Fix TypeError caused by incorrect argument in startswith() method --- Scripts/gpu_identifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/gpu_identifier.py b/Scripts/gpu_identifier.py index b3074fd..4444db0 100755 --- a/Scripts/gpu_identifier.py +++ b/Scripts/gpu_identifier.py @@ -35,7 +35,7 @@ class GPUIdentifier: gpu_codename = "Jasper Lake" elif device_id.startswith("4C"): gpu_codename = "Rocket Lake" - elif device_id.startswith("462", "46A"): + elif device_id.startswith(("462", "46A")): gpu_codename = "Alder Lake-P" elif device_id.startswith("46D"): gpu_codename = "Alder Lake-N"