1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

eddn: Be more paranoid about system name augmentation

This commit is contained in:
Athanasius 2022-02-01 15:43:42 +00:00
parent 8251c78b06
commit 87193b4a51
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -802,7 +802,12 @@ class EDDN:
# If 'SystemName' or 'System' is there, it's directly from a journal event.
# If they're not there *and* 'StarSystem' isn't either, then we add the latter.
if 'SystemName' not in entry and 'System' not in entry and 'StarSystem' not in entry:
entry['StarSystem'] = system_name
if system_name is not None and system_name != '':
entry['StarSystem'] = system_name
else:
# Bad assumptions if this is the case
logger.error(f'No system name in entry, and system_name was not set either! entry:\n{entry!r}\n')
if 'SystemAddress' not in entry:
if this.systemaddress is None: