silence warning when resolving team for self-damage
This commit is contained in:
parent
85296a2817
commit
262a051356
2
main.py
2
main.py
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user