From eb3e07b17114d02f599b7b7da141db1cee078cf4 Mon Sep 17 00:00:00 2001 From: sgseeds <110429618+sgseeds@users.noreply.github.com> Date: Thu, 16 Oct 2025 11:02:45 -0700 Subject: [PATCH] Update compiler_path.py Catch UnicodeDecodeError exception when trying to determine if sass executable is a binary --- src/dart_sass/compiler_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dart_sass/compiler_path.py b/src/dart_sass/compiler_path.py index d11b78b..4f1921e 100644 --- a/src/dart_sass/compiler_path.py +++ b/src/dart_sass/compiler_path.py @@ -104,7 +104,7 @@ def _find_dart_sass_executable() -> Optional[List[str]]: pass # Skip our own Python script else: return [sass_exe] - except (IOError, OSError): + except (IOError, OSError, UnicodeDecodeError): # If we can't read it, assume it's a binary and try it return [sass_exe]