Mercurial > code > home > repos > light9
changeset 635:0818825c629f
vidref bomb if a dir appears empty of frames. that's probably an error
Ignore-this: eb1db1289f1f295fa1f1220678085c11
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 16 Jun 2011 07:10:33 +0000 |
parents | 7d59926031ba |
children | 54c863b2553e |
files | light9/vidref/replay.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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):