From 928cfcd80ade6742523e626613a13f74575afcdc Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 27 Aug 2026 12:42:57 +0100 Subject: [PATCH] Ensure python compile error exceptions get handled properly --- qrenderdoc/Code/pyrenderdoc/PythonContext.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp index 616ab29cb..f81b63c98 100644 --- a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp +++ b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp @@ -1603,6 +1603,11 @@ void PythonContext::executeString(const QString &filename, const QString &source Py_XDECREF(settrace); Py_XDECREF(gettrace); } + else + { + caughtException = true; + FetchException(typeStr, valueStr, finalLine, frames); + } Py_XDECREF(compiled);