From 262a0513569e251937751e962375460a9dd68136 Mon Sep 17 00:00:00 2001 From: xeals Date: Mon, 3 Apr 2023 21:55:25 +1000 Subject: [PATCH] silence warning when resolving team for self-damage --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 944941a..56190c2 100755 --- a/main.py +++ b/main.py @@ -54,7 +54,7 @@ def team(player: str) -> str: if player in TEAMS: return TEAMS[player] else: - if not player in _logged_teams: + if not player in _logged_teams and player: LOG.warning(f"missing team mapping for {player}") _logged_teams.append(player) return player