projects
/
forks
/
peks-announcer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a55a759
)
fixed a bug that crashed the program during loading screen
author
Georgios Atheridis
<georgios@atheridis.org>
Sun, 15 Jan 2023 02:17:52 +0000
(
02:17
+0000)
committer
Georgios Atheridis
<georgios@atheridis.org>
Sun, 15 Jan 2023 02:17:52 +0000
(
02:17
+0000)
announcer/events.py
patch
|
blob
|
history
diff --git
a/announcer/events.py
b/announcer/events.py
index 120eace2f7cc6a5744a8a322ef210307ca0e980a..0349457efc28655590682cc66fd23e30bc37590b 100644
(file)
--- a/
announcer/events.py
+++ b/
announcer/events.py
@@
-62,7
+62,10
@@
class Event:
if not self.game_data:
logger.warning("Polling without game data")
return []
- self.player_name = self.game_data["activePlayer"]["summonerName"]
+ try:
+ self.player_name = self.game_data["activePlayer"]["summonerName"]
+ except KeyError:
+ return []
self.player_team = ""
self.team_order_players = []
self.team_chaos_players = []