From cbba5c6929a40bbf52eebded1e12ac1270390454 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 7 Aug 2018 14:38:52 +0200 Subject: [PATCH] Avoid empty tempo data --- timeside/plugins/analyzer/externals/vamp_tempo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/timeside/plugins/analyzer/externals/vamp_tempo.py b/timeside/plugins/analyzer/externals/vamp_tempo.py index 9ce621fc..d10ad778 100644 --- a/timeside/plugins/analyzer/externals/vamp_tempo.py +++ b/timeside/plugins/analyzer/externals/vamp_tempo.py @@ -73,5 +73,6 @@ def unit(): def post_process(self): super(VampTempo, self).post_process() tempo = self.new_result(data_mode='value', time_mode='global') - tempo.data_object.value = self.vamp_results['list'][0]['values'] + if self.vamp_results['list']: + tempo.data_object.value = self.vamp_results['list'][0]['values'] self.add_result(tempo)