Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions apache-fake-log-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ def __init__(self, value):

def __iter__(self):
"""Return the match method once, then stop"""
yield self.match
raise StopIteration
try:
yield self.match
except StopIteration:
return

def match(self, *args):
"""Indicate whether or not to enter a case suite"""
Expand Down