X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=lib%2Fbup%2Findex.py;h=3b98892b41b6b223bf74c9d4c5779439b718376f;hp=591079a7b59b2963b47692cfe9ef40d6277c103b;hb=12aa03917a8c528a1daaa836ab93cb189b530e0b;hpb=7624ec133ef072fe08b6bcbdeabfa21edee51bfc diff --git a/lib/bup/index.py b/lib/bup/index.py index 591079a..3b98892 100644 --- a/lib/bup/index.py +++ b/lib/bup/index.py @@ -522,7 +522,8 @@ class Reader: # Otherwise something like "save x/y" will produce # nothing if x is up to date. pe = self.find(rp) - assert(pe) + if not pe: + raise Exception("cannot find %r" % rp) name = path + pe.name[len(rp):] yield (name, pe)