scripts/eddn-report-log-errors: Handle non-parsable softwareVersion

This commit is contained in:
Athanasius committed 2022-04-24 10:08:19 +00:00
1 parent de6551002f
commit 91c6ef0108
1 file changed
+7 -1
+7 -1
View File
@@ -62,7 +62,13 @@ def process_file(input_file: str) -> None:
# print(matches.group('sender_ip'))
# print('')
software_version = semantic_version.Version.coerce(matches.group('software_version'))
try:
software_version = semantic_version.Version.coerce(matches.group('software_version'))
except ValueError as e:
print(f"Error parsing sofwareVersion for:\n{matches.group('software_version')}\n{line}\n")
next
###################################################################
# Issues we know about and HAVE already alerted their
# developers to.