]> arthur.barton.de Git - bup.git/commitdiff
catpipe: remove useless StopIteration catching
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Jan 2020 23:16:54 +0000 (00:16 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 1 Mar 2020 22:53:57 +0000 (16:53 -0600)
StopIteration cannot escape this loop construct, remove it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py

index 9b651470a31bd36b5d430035e199c399b21d2f33..f364227ea56a93fd880eafc7265cdb907a911d3b 100644 (file)
@@ -1294,11 +1294,8 @@ class CatPipe:
         or a commit. The content of all blobs that can be seen from trees or
         commits will be added to the list.
         """
-        try:
-            for d in self._join(self.get(id)):
-                yield d
-        except StopIteration:
-            log('booger!\n')
+        for d in self._join(self.get(id)):
+            yield d
 
 
 _cp = {}