1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

Don't give error if system coordinates unknown

Fixes #446
This commit is contained in:
Jonathan Harris 2019-09-13 19:31:45 +01:00
parent 59b738fbf0
commit 02d4da30d5

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)