]> granicus.if.org Git - python/commitdiff
We only need to check for StopIteration here.
authorFred Drake <fdrake@acm.org>
Mon, 5 Aug 2002 22:16:40 +0000 (22:16 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 5 Aug 2002 22:16:40 +0000 (22:16 +0000)
Lib/test/test_hotshot.py

index c4d24849311ad8644292033428018f8ed396e081..dad2bd4f2ceaa3526db38745d0655aeb09e674c1 100644 (file)
@@ -30,7 +30,7 @@ class UnlinkingLogReader(hotshot.log.LogReader):
     def next(self, index=None):
         try:
             return hotshot.log.LogReader.next(self)
-        except (IndexError, StopIteration):
+        except StopIteration:
             self.close()
             os.unlink(self.__logfn)
             raise