Browse Source

changed StopIteration to return value

main
www-data 3 years ago
parent
commit
2ecb37a121
  1. 2
      honeypot/utils.py

2
honeypot/utils.py

@ -19,7 +19,7 @@ def extract_wiki_definitions(file_handle): @@ -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]

Loading…
Cancel
Save