1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-15 14:52:15 +03:00

plugins/inara: Don't try to send None-system location

I'm not sure normal use can cause this, but it's an easy obvious check.
This commit is contained in:
Athanasius 2021-05-20 17:34:09 +01:00
parent 2184afba9b
commit 278a78c09a

View File

@ -449,6 +449,9 @@ def journal_entry( # noqa: C901, CCR001
) )
# Update location # Update location
# Might not be available if this event is a 'StartUp' and we're replaying
# a log.
if system:
new_add_event( new_add_event(
'setCommanderTravelLocation', 'setCommanderTravelLocation',
entry['timestamp'], entry['timestamp'],