From 3597b34fd1befdeeeba06f8b36908430daf23194 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 17 Feb 2018 14:09:57 +0100 Subject: Unconfigured match database should also fall back to config info --- jfr_playoff/matchinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jfr_playoff') 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): -- cgit v1.2.3