Don't give error if system coordinates unknown

Fixes #446
This commit is contained in:
Jonathan Harris committed 2019-09-13 19:46:05 +01:00
1 parent 59b738fbf0
commit 02d4da30d5
1 file changed
+2 -1
+2 -1
View File
@@ -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)