mirror of https://github.com/python/cpython
We only need to check for StopIteration here.
This commit is contained in:
parent
94caa78ebf
commit
63c4220f61
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue