silence warning when resolving team for self-damage

This commit is contained in:
xeals 2023-04-03 21:55:25 +10:00
parent 85296a2817
commit 262a051356
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

View File

@ -54,7 +54,7 @@ def team(player: str) -> str:
if player in TEAMS: if player in TEAMS:
return TEAMS[player] return TEAMS[player]
else: else:
if not player in _logged_teams: if not player in _logged_teams and player:
LOG.warning(f"missing team mapping for {player}") LOG.warning(f"missing team mapping for {player}")
_logged_teams.append(player) _logged_teams.append(player)
return player return player