Commit 63c4220f authored by Fred Drake's avatar Fred Drake

We only need to check for StopIteration here.

parent 94caa78e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment