handle not having a toc

This commit is contained in:
Thomas Vander Stichele
2009-05-04 13:48:22 +00:00
parent 3a75cb2d0f
commit 9841d5e2fb

View File

@@ -11,12 +11,11 @@ def main():
runner.run(t)
print 'runner done', t.toc
if not t.toc:
if not t.table:
print 'Failed to read TOC'
return
for track in t.toc.tracks:
print track._indexes
for track in t.table.tracks:
print track.getIndex(1).absolute
main()