From 2ecb37a121d59df13e07e77af67cfb839e18a3ce Mon Sep 17 00:00:00 2001 From: www-data Date: Tue, 24 Aug 2021 09:33:34 +0200 Subject: [PATCH] changed StopIteration to return value --- honeypot/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]