From 17b66cf9dab4f71f108d3efb8b995ce80a2171cc Mon Sep 17 00:00:00 2001 From: Rudolf Kolbe Date: Sat, 14 Oct 2023 20:50:02 +0200 Subject: [PATCH] ImportHelper - fix find_sensite_path --- UnityPy/helpers/ImportHelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityPy/helpers/ImportHelper.py b/UnityPy/helpers/ImportHelper.py index e931daae..089a0a03 100644 --- a/UnityPy/helpers/ImportHelper.py +++ b/UnityPy/helpers/ImportHelper.py @@ -154,7 +154,7 @@ def find_sensitive_path(dir: str, insensitive_path: str) -> Union[str, None]: (name for name in os.listdir(senstive_path) if name.lower() == part_lower), None, ) - if next is None: + if part is None: return None senstive_path = os.path.join(senstive_path, part)