# HG changeset patch # User drewp@bigasterisk.com # Date 1277068391 0 # Node ID 236a0b89ee0f173ce0c736fa4d0bb767eb60bc26 # Parent c8bfe3c32670af8580f69af0fb0ca87f3a7976e0 vidref poured exceptions when the player had no song Ignore-this: 338e48bf5e495e4592b618d5b271a30b diff -r c8bfe3c32670 -r 236a0b89ee0f light9/vidref/main.py --- a/light9/vidref/main.py Sun Jun 20 17:49:23 2010 +0000 +++ b/light9/vidref/main.py Sun Jun 20 21:13:11 2010 +0000 @@ -102,7 +102,7 @@ position = self.musicTime.getLatest() if not position['song']: - print "no song" + print "no song" # todo: this prints too much when the player has no song return gst.FLOW_OK try: diff -r c8bfe3c32670 -r 236a0b89ee0f light9/vidref/replay.py --- a/light9/vidref/replay.py Sun Jun 20 17:49:23 2010 +0000 +++ b/light9/vidref/replay.py Sun Jun 20 21:13:11 2010 +0000 @@ -54,6 +54,9 @@ v.destroy() self.views[:] = [] + if not song: + return + d = songDir(song) try: takes = sorted(t for t in os.listdir(d) if t.isdigit())