diff --git a/honeypot/utils.py b/honeypot/utils.py index 0702913..54289bd 100644 --- a/honeypot/utils.py +++ b/honeypot/utils.py @@ -19,7 +19,7 @@ def extract_wiki_definitions(file_handle): break for line in file_handle: if line.startswith(']'): - raise StopIteration + break parts = split_wiki_definitions(line) if parts is not None: yield parts[1], parts[3]