Skip to content

Commit 84b726a

Browse files
committed
fix like in P4D
1 parent 9778a3f commit 84b726a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python4lazarus/PythonEngine.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4782,7 +4782,7 @@ procedure TPythonEngine.RaiseError;
47824782
if Assigned(tmp) and PyUnicode_Check(tmp) then
47834783
s_value := PyUnicodeAsString(tmp);
47844784
Py_XDECREF(tmp);
4785-
if MajorVersion >= 10 then
4785+
if (MajorVersion > 3) or (MinorVersion >= 10) then
47864786
begin
47874787
// Get the end offset of the error
47884788
tmp := PyObject_GetAttrString(err_value, 'end_offset' );

0 commit comments

Comments
 (0)