Replace 'raise StopIteration' with a blank 'return', since changes in python-3.7 change StopIeration to a RuntimeError.

This commit is contained in:
Mike Auty
2018-09-28 12:44:19 +01:00
parent 3e176c8a50
commit de3bfad135
9 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class Strings(interfaces.plugins.PluginInterface):
yield (0, (str(string, 'latin-1'), format_hints.Hex(offset), ", ".join(revmap_list)))
except ValueError:
vollog.error("Strings file is in the wrong format")
raise StopIteration
return
def _parse_line(self, line: bytes) -> typing.Tuple[int, bytes]:
"""Parses a single line from a strings file"""