summaryrefslogtreecommitdiffstats
path: root/Lib/hotshot/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/hotshot/log.py')
-rw-r--r--Lib/hotshot/log.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/hotshot/log.py b/Lib/hotshot/log.py
index 99d0729..b7ce259 100644
--- a/Lib/hotshot/log.py
+++ b/Lib/hotshot/log.py
@@ -106,7 +106,10 @@ class LogReader:
return what, t, tdelta
if what == WHAT_EXIT:
- return what, self._pop(), tdelta
+ try:
+ return what, self._pop(), tdelta
+ except IndexError:
+ raise StopIteration
if what == WHAT_LINENO:
filename, firstlineno, funcname = self._stack[-1]