From 0c62f454a7fd84bdcd0905ec0e0968173940a401 Mon Sep 17 00:00:00 2001 From: Brett Williams Date: Fri, 5 Jun 2026 19:37:12 -0500 Subject: [PATCH] fix: greedy regex in get_render_devices swallows BlenderKit log output Changed regex from greedy [\s\S]* to non-greedy .*? with re.DOTALL so it stops at the first ] (the end of the GPU data JSON array) instead of matching through timestamped log lines like [19:36:22.109, __init__.py:2881] that contain trailing brackets. --- src/engines/blender/blender_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engines/blender/blender_engine.py b/src/engines/blender/blender_engine.py index 4cb0277..6f39ab7 100644 --- a/src/engines/blender/blender_engine.py +++ b/src/engines/blender/blender_engine.py @@ -173,7 +173,7 @@ class Blender(BaseRenderEngine): script_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'scripts', 'get_system_info.py') results = self.run_python_script(script_path=script_path) output = results.stdout.decode() - match = re.search(r"GPU DATA:(\[[\s\S]*\])", output) + match = re.search(r"GPU DATA:(\[.*?\])", output, re.DOTALL) if match: gpu_data_json = match.group(1) gpus_info = json.loads(gpu_data_json)