# HG changeset patch # User drewp@bigasterisk.com # Date 1371408453 0 # Node ID 458eb42fa016b500a95de24f2254fecbb2697412 # Parent 3b059200061d5b3a1c3656561cb6a04d51bee0a7 curvecalc: no error if music player has no current song Ignore-this: 5577a78295efc8f97c7fc53561df1ade diff -r 3b059200061d -r 458eb42fa016 light9/curvecalc/musicaccess.py --- a/light9/curvecalc/musicaccess.py Sun Jun 16 18:46:01 2013 +0000 +++ b/light9/curvecalc/musicaccess.py Sun Jun 16 18:47:33 2013 +0000 @@ -64,7 +64,7 @@ def _bodyReceived(self, data): if 't' in data: dispatcher.send("input time", val=data['t']) - if 'song' in data: + if 'song' in data and data['song']: dispatcher.send("current_player_song", song=URIRef(data['song'])) return data['t'] # pass along to the real receiver