summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-02-21 15:35:38 +0100
committeremkael <emkael@tlen.pl>2018-02-21 15:35:38 +0100
commit8ff88a5494d77dba398ca874ce303449479d367d (patch)
tree0a848f9262a8d5637998949ecd2a407492038220 /jfr_playoff
parent83b4d01bb6b5f11fc0d447649ddcb587e867f7af (diff)
?
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/matchinfo.py1
-rw-r--r--jfr_playoff/tournamentinfo.py3
2 files changed, 3 insertions, 1 deletions
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']: