mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-10 20:32:15 +03:00
scripts/eddn-report-log-errors: New 'EDSM'/1.0.3/journal/Scan error
* Also corrects the conditionals to both skip this and always log anything else.
This commit is contained in:
parent
a93c342550
commit
2b141bf8ac
@ -177,15 +177,16 @@ def process_file(input_file: str) -> None:
|
|||||||
|
|
||||||
elif matches.group('software_name') == 'EDSM':
|
elif matches.group('software_name') == 'EDSM':
|
||||||
# It's in-browser, no public source/releases
|
# It's in-browser, no public source/releases
|
||||||
if software_version >= semantic_version.Version.coerce('1.0.1'):
|
if software_version >= semantic_version.Version.coerce('1.0.3'):
|
||||||
if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/journal/1':
|
if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/journal/1':
|
||||||
if matches.group('journal_event') == 'Scan':
|
if matches.group('journal_event') == 'Scan':
|
||||||
# <https://github.com/EDSM-NET/FrontEnd/issues/466>
|
# <https://github.com/EDSM-NET/FrontEnd/issues/472>
|
||||||
if not matches.group('err_msg').startswith(
|
if matches.group('err_msg').startswith(
|
||||||
'Failed Validation "[<ValidationError: "{\'type\': [\'array\', \'boolean\', \'integer\', \'number\', \'null\', \'object\', \'string\']} is not allowed for '
|
'Failed Validation "[<ValidationError: "None is not of type \'integer\'">]"'
|
||||||
):
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
else:
|
||||||
print(matches.group('err_msg'))
|
print(matches.group('err_msg'))
|
||||||
print(line)
|
print(line)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user