Ensure python compile error exceptions get handled properly

This commit is contained in:
baldurk
2026-08-27 12:42:57 +01:00
parent a95d4d0461
commit 928cfcd80a
@@ -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);