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:             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:       Result := PyRun_String(PChar(Command), Mode, GlobalsMain, GlobalsMain); //seems no need separate Locals
        if Result = nil then
          CheckError(False);
        if PyErr_Occurred <> nil then
          CheckError(False);
      except
        on E: Exception do
          MsgLogConsole('ERROR: Exception in CudaText: '+E.Message);
      end;
    end;
  end;
  