summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-02-17 15:21:00 +0100
committeremkael <emkael@tlen.pl>2018-02-17 15:21:00 +0100
commitf2fe40754a9a63d1854885e17b0e304dbf4a834f (patch)
treec38356362ff49bf9a0d2f542ac19a8a8dba5bcb6
parent15e0d4cb2653b12b78912ad09003fff6826b4e65 (diff)
Catching not configured database on board cout retrieval
-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 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 \