From 8ff88a5494d77dba398ca874ce303449479d367d Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 21 Feb 2018 15:35:38 +0100 Subject: ? --- jfr_playoff/matchinfo.py | 1 - jfr_playoff/tournamentinfo.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py index c9d6680..1f6446e 100644 --- a/jfr_playoff/matchinfo.py +++ b/jfr_playoff/matchinfo.py @@ -138,7 +138,6 @@ class MatchInfo: return teams def __fetch_teams_with_scores(self): - print self.info.teams (scores_fetched, teams_fetched, self.info.teams) = self.__get_predefined_scores() if scores_fetched: if 'running' in self.config: diff --git a/jfr_playoff/tournamentinfo.py b/jfr_playoff/tournamentinfo.py index 90637bc..9805c74 100644 --- a/jfr_playoff/tournamentinfo.py +++ b/jfr_playoff/tournamentinfo.py @@ -117,11 +117,14 @@ class TournamentInfo: def get_tournament_results(self): teams = [] try: + print 'try DB results' teams = self.__get_db_results() except (mysql.connector.Error, TypeError, IndexError, KeyError): try: + print 'try HTML results' teams = self.__get_html_results() except (TypeError, IndexError, KeyError, IOError, ValueError): + raise pass if self.is_finished() and 'final_positions' in self.settings: for position in self.settings['final_positions']: -- cgit v1.2.3