Skip to content

Commit cbba5c6

Browse files
committed
Avoid empty tempo data
1 parent bccb970 commit cbba5c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

timeside/plugins/analyzer/externals/vamp_tempo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,6 @@ def unit():
7373
def post_process(self):
7474
super(VampTempo, self).post_process()
7575
tempo = self.new_result(data_mode='value', time_mode='global')
76-
tempo.data_object.value = self.vamp_results['list'][0]['values']
76+
if self.vamp_results['list']:
77+
tempo.data_object.value = self.vamp_results['list'][0]['values']
7778
self.add_result(tempo)

0 commit comments

Comments
 (0)