From 63c4220f61b9cbfbd55160d0b2ab7e859d74e820 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 5 Aug 2002 22:16:40 +0000 Subject: [PATCH] We only need to check for StopIteration here. --- Lib/test/test_hotshot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index c4d24849311..dad2bd4f2ce 100644 --- a/Lib/test/test_hotshot.py +++ b/Lib/test/test_hotshot.py @@ -30,7 +30,7 @@ def __init__(self, logfn): def next(self, index=None): try: return hotshot.log.LogReader.next(self) - except (IndexError, StopIteration): + except StopIteration: self.close() os.unlink(self.__logfn) raise