Python can retry when there is an empty vector, but sometimes it is necessary to manually reset the timer in the stm32 with "d 5" in order to plot the data.