1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

plugins/eddn: Do *NOT* alert user on 'no Route in NavRoute'

This can simply occur if the *first* load of `NavRoute.json` soft-fails,
meaning the plugin is receiving the bare Journal-file event, which has no
`Route` array.
This commit is contained in:
Athanasius 2022-08-10 11:51:23 +01:00
parent 1bb0bf9f74
commit f28228285a
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

View File

@ -1111,8 +1111,10 @@ class EDDN:
# Sanity check - Ref Issue 1342 # Sanity check - Ref Issue 1342
if 'Route' not in entry: if 'Route' not in entry:
logger.warning(f"NavRoute didn't contain a Route array!\n{entry!r}") logger.warning(f"NavRoute didn't contain a Route array!\n{entry!r}")
# LANG: No 'Route' found in NavRoute.json file # This can happen if first-load of the file failed, and we're simply
return _("No 'Route' array in NavRoute.json contents") # passing through the bare Journal event, so no need to alert
# the user.
return None
####################################################################### #######################################################################
# Elisions # Elisions