anchor.diff:              Result:=PyObject_Call(Func,Params,nil);
               if Result = nil then
                 CheckError(False);
  +            if PyErr_Occurred <> nil then
  +              CheckError(False);
             except
               on E: Exception do
  -            begin
                 MsgLogConsole(Format('ERROR: Exception in CudaText for %s: %s', [AFunc, E.Message]));
  -              if PyErr_Occurred <> nil then
  -                CheckError(False)
  -              else
  -                raise;
  -            end;
             end;
           finally
             Py_DECREF(Params);
  
positive.code:             PyTuple_SetItem(ObjEditorArgs, 0, PyLong_FromLongLong(PtrInt(AEd)));
              MaskFPU(true);
              ParamsObj[0]:= PyObject_CallObject(ObjEditor, ObjEditorArgs);
            except
              on E: Exception do
              begin
                MsgLogConsole(Format('ERROR: Exception in CudaText for %s.%s: %s', [AModule, ACmd, E.Message]));
                if FEngine.PyErr_Occurred <> nil then
                  FEngine.CheckError(False)
                else
                  raise;
              end;
            end;
          finally
            Py_XDECREF(ObjEditorArgs);
  
negative.code:                         RaiseError;
                      MaskFPU(true);
                      Result:=PyObject_Call(Func,Params,ParamsDic);
                      if PyErr_Occurred <> nil then
                        CheckError(False);
                    except
                      on E: Exception do
                        MsgLogConsole(Format('ERROR: Exception in CudaText for %s.%s: %s', [AModule, AFunc, E.Message]));
                    end;
                  finally
                    Py_DECREF(ParamsDic);
  