From f28228285a5c6443d71687305f31c4dda3943a67 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 10 Aug 2022 11:51:23 +0100 Subject: [PATCH] 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. --- plugins/eddn.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index 4bea9bcd..b369e415 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -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