From f2fe40754a9a63d1854885e17b0e304dbf4a834f Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 17 Feb 2018 15:21:00 +0100 Subject: Catching not configured database on board cout retrieval --- jfr_playoff/matchinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py index 9473238..9366d5f 100644 --- a/jfr_playoff/matchinfo.py +++ b/jfr_playoff/matchinfo.py @@ -152,7 +152,7 @@ class MatchInfo: boards_to_play = 0 try: boards_played, boards_to_play = self.__get_db_board_count() - except (mysql.connector.Error, TypeError, KeyError): + except (mysql.connector.Error, TypeError, IndexError, KeyError): pass if boards_played > 0: self.info.running = -1 \ -- cgit v1.2.3