X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Flocal.py;h=fe699a44f2c1bccdc7d65e1bcdaa4c814e96a9c5;hb=59e32d8da9a36ba7b2395d8168d335786e9b4c5d;hp=3051013f971a43ce50166d107b9b340d5be0c8d2;hpb=afd66b913158fdca95d1a30a0518808afb437374;p=automanga.git 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: