From 02d4da30d5a69fcf2736c8af7c43de97993a22b6 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Fri, 13 Sep 2019 19:31:45 +0100 Subject: [PATCH] Don't give error if system coordinates unknown Fixes #446 --- plugins/eddn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index 9a3403c0..a4cc7c51 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -416,7 +416,8 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): (entry['event'] == 'Location' or entry['event'] == 'FSDJump' or entry['event'] == 'Docked' or - entry['event'] == 'Scan' and this.coordinates)): + entry['event'] == 'Scan') and + ('StarPos' in entry or this.coordinates)): # strip out properties disallowed by the schema for thing in ['ActiveFine', 'CockpitBreach', 'BoostUsed', 'FuelLevel', 'FuelUsed', 'JumpDist', 'Latitude', 'Longitude', 'Wanted']: entry.pop(thing, None)