1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

Inara: Also catch empty opponentName for Interdict*ion*

This commit is contained in:
Athanasius 2022-12-01 13:37:56 +00:00
parent 2bbda30097
commit aac660fb05
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -1091,7 +1091,11 @@ def journal_entry( # noqa: C901, CCR001
elif 'Power' in entry:
data['opponentName'] = entry['Power']
new_add_event('addCommanderCombatInterdiction', entry['timestamp'], data)
if data['opponentName'] == "":
logger.warning('Dropping addCommanderCombatInterdiction message because opponentName came out as ""')
else:
new_add_event('addCommanderCombatInterdiction', entry['timestamp'], data)
elif event_name == 'EscapeInterdiction':
new_add_event(