clean selection without message when run without anything selected

Hello,

I am running a python script that clears selection, creates a selection and then extracts it, lastly clears the selection again.
it works, but i am having a small annoyance, when running ClearSelection(), if i dont have anything selected, i get the following print (which is annoying as i am printing some debug info during the run)

ClearSelection() warning: In unknown, line 0 warning: dataChanged() called with an invalid index range: topleft: QModelIndex(-1,-1,0x0,QObject(0x0)) bottomRight:QModelIndex(-1,-1,0x0,QObject(0x0))

is it possible to remove this?

thanks in advance,

Can you share a Python script which shows the problem? I suspect that some method needs to check for valid indices before trying anything with them.

Cc: @cory.quammen @mwestphal