I added some error handling to the method SpectrogramWindow.update(self, datavec)