mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
We only need to check for StopIteration here.
This commit is contained in:
parent
94caa78ebf
commit
63c4220f61
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue