1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00
This commit is contained in:
Phoebe 2024-02-25 20:45:59 +01:00
parent 249f89f0fe
commit 99daff1295

View File

@ -1008,7 +1008,8 @@ def journal_entry( # noqa: C901, CCR001
opponent_name_issue = 'opponentName' not in data or data['opponentName'] == ""
wing_opponent_names_issue = 'wingOpponentNames' not in data or data['wingOpponentNames'] == []
if opponent_name_issue and wing_opponent_names_issue:
logger.warning('Dropping addCommanderCombatDeath message because opponentName and wingOpponentNames came out as ""')
logger.warning('Dropping addCommanderCombatDeath message'
'because opponentName and wingOpponentNames came out as ""')
else:
new_add_event('addCommanderCombatDeath', entry['timestamp'], data)