]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/index.py
index.Reader.filter: throw when parent's missing (don't assert)
[bup.git] / lib / bup / index.py
index 591079a7b59b2963b47692cfe9ef40d6277c103b..3b98892b41b6b223bf74c9d4c5779439b718376f 100644 (file)
@@ -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)