anchor.diff:            Result:= Pointer(Obj)<>Pointer(Py_False);
             Py_XDECREF(Obj);
           end;
  +
  +      if FEngine.PyErr_Occurred <> nil then
  +        FEngine.CheckError(False);
       except
         on E: Exception do
  -      begin
           MsgLogConsole(Format('ERROR: Exception in CudaText for %s.%s: %s', [AModule, AMethod, E.Message]));
  -        if FEngine.PyErr_Occurred <> nil then
  -          FEngine.CheckError(False)
  -        else
  -          raise;
  -      end;
       end;
     finally
       TimeTrackEnd(AModule, tick);
  
positive.code:             ObjObject:= PyObject_CallObject(ObjClass, nil);
              if Assigned(ObjObject) then
                PyDict_SetItemString(GlobalsMain, PChar(AObjectName), ObjObject);
            except
              on E: Exception do
              begin
                MsgLogConsole(Format('ERROR: Exception in CudaText for importing %s: %s', [AModule, E.Message]));
                if FEngine.PyErr_Occurred <> nil then
                  FEngine.CheckError(False)
                else
                  raise;
              end;
            end;
          finally
            Py_DECREF(ObjClass);
  
negative.code:       InitParamsObj;
        Result:= MethodEvalEx(ObjName, ACmd, ParamsObj);
      end;
  
      if FEngine.PyErr_Occurred <> nil then
        FEngine.CheckError(False);
    except
      on E: Exception do
        MsgLogConsole(Format('ERROR: Exception in CudaText for %s.%s: %s', [AModule, ACmd, E.Message]));
    end;
  
    FRunning:= false;
  