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:
parent
1bb0bf9f74
commit
f28228285a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user