summaryrefslogtreecommitdiff
path: root/jfr_playoff/tournamentinfo.py
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/tournamentinfo.py
parent83b4d01bb6b5f11fc0d447649ddcb587e867f7af (diff)
?
Diffstat (limited to 'jfr_playoff/tournamentinfo.py')
-rw-r--r--jfr_playoff/tournamentinfo.py3
1 files changed, 3 insertions, 0 deletions
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']: