We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dda809 commit a2f3b82Copy full SHA for a2f3b82
Source/PythonEngine.pas
@@ -5129,7 +5129,7 @@ procedure TPythonEngine.RaiseError;
5129
if Assigned(tmp) and PyUnicode_Check(tmp) then
5130
s_value := PyUnicodeAsString(tmp);
5131
Py_XDECREF(tmp);
5132
- if MajorVersion >= 10 then
+ if (MajorVersion > 3) or (MinorVersion >= 10) then
5133
begin
5134
// Get the end offset of the error
5135
tmp := PyObject_GetAttrString(err_value, 'end_offset' );
0 commit comments