We only need to check for StopIteration here.

This commit is contained in:
Fred Drake 2002-08-05 22:16:40 +00:00
parent 94caa78ebf
commit 63c4220f61
1 changed files with 1 additions and 1 deletions

View File

@ -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