summaryrefslogtreecommitdiff
path: root/jfr_playoff/matchinfo.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-02-17 14:09:57 +0100
committeremkael <emkael@tlen.pl>2018-02-17 14:09:57 +0100
commit3597b34fd1befdeeeba06f8b36908430daf23194 (patch)
treee9496b3d317756a655b3fefce75e35fe03cf80cc /jfr_playoff/matchinfo.py
parent088cb333bfb9b9427d6d4eeca6e8e57caa3b6c94 (diff)
Unconfigured match database should also fall back to config info
Diffstat (limited to 'jfr_playoff/matchinfo.py')
-rw-r--r--jfr_playoff/matchinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py
index ba4a29f..7141113 100644
--- a/jfr_playoff/matchinfo.py
+++ b/jfr_playoff/matchinfo.py
@@ -125,7 +125,7 @@ class MatchInfo:
if not teams_fetched:
try:
self.info.teams = self.__get_db_teams(self.info.teams, not scores_fetched)
- except (mysql.connector.Error, TypeError, IndexError):
+ except (mysql.connector.Error, TypeError, IndexError, KeyError):
self.info.teams = self.__get_config_teams(self.info.teams)
def __get_db_board_count(self):