X-Git-Url: http://dolda2000.com/gitweb/?p=automanga.git;a=blobdiff_plain;f=manga%2Flocal.py;h=fe699a44f2c1bccdc7d65e1bcdaa4c814e96a9c5;hp=3051013f971a43ce50166d107b9b340d5be0c8d2;hb=fab0538835546d145a61ffe2771bcb0a23f89a50;hpb=7f4e185b4436452be259b15b172c52e309770085 diff --git a/manga/local.py b/manga/local.py index 3051013..fe699a4 100644 --- a/manga/local.py +++ b/manga/local.py @@ -128,6 +128,8 @@ class manga(lib.manga): ordered, files = self.imglist() pages, orig = self.bakenames(files) mx = maxstruct(pages) + if mx is None: + raise TypeError("could not figure out any structure") var = [i for i, part in enumerate(mx) if part == int] structs = [(nm, decode1(nm)) for nm in pages] if not ordered: