mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +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
|
||||
if 'Route' not in entry:
|
||||
logger.warning(f"NavRoute didn't contain a Route array!\n{entry!r}")
|
||||
# LANG: No 'Route' found in NavRoute.json file
|
||||
return _("No 'Route' array in NavRoute.json contents")
|
||||
# This can happen if first-load of the file failed, and we're simply
|
||||
# passing through the bare Journal event, so no need to alert
|
||||
# the user.
|
||||
return None
|
||||
|
||||
#######################################################################
|
||||
# Elisions
|
||||
|
Loading…
x
Reference in New Issue
Block a user