summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_hotshot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py
index c4d2484..dad2bd4 100644
--- a/Lib/test/test_hotshot.py
+++ b/Lib/test/test_hotshot.py
@@ -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