# HG changeset patch # User Drew Perttula # Date 1308208233 0 # Node ID 0818825c629fad3f2a52abd629ea181f89c07895 # Parent 7d59926031ba83e638787ab4a52f94ed73066f3b vidref bomb if a dir appears empty of frames. that's probably an error Ignore-this: eb1db1289f1f295fa1f1220678085c11 diff -r 7d59926031ba -r 0818825c629f light9/vidref/replay.py --- a/light9/vidref/replay.py Wed Jun 15 07:54:58 2011 +0000 +++ b/light9/vidref/replay.py Thu Jun 16 07:10:33 2011 +0000 @@ -197,6 +197,8 @@ log.info("scanning %s", self.takeDir) self.existingFrames = sorted([Decimal(f.split('.jpg')[0]) for f in os.listdir(self.takeDir)]) + if not self.existingFrames: + raise NotImplementedError("suspiciously found no frames in dir %s" % self.takeDir) _existingFrames[self.takeDir] = self.existingFrames def tooShort(self, minSeconds=5):