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:
parent
2bbda30097
commit
aac660fb05
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user