[SCM] morituri/master: fail if we don't have a toc
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:08:55 UTC 2014
The following commit has been merged in the master branch:
commit 6769480d2dd15e0f08688de807568400e72baf24
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Mon May 4 13:04:19 2009 +0000
fail if we don't have a toc
diff --git a/examples/readtoc.py b/examples/readtoc.py
index 6e76c6f..087c75c 100644
--- a/examples/readtoc.py
+++ b/examples/readtoc.py
@@ -11,6 +11,10 @@ def main():
runner.run(t)
print 'runner done', t.toc
+ if not t.toc:
+ print 'Failed to read TOC'
+ return
+
for track in t.toc.tracks:
print track._indexes
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list