summaryrefslogtreecommitdiff
path: root/jfr_playoff/tournamentinfo.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-02-24 11:04:11 +0100
committeremkael <emkael@tlen.pl>2018-02-24 11:04:11 +0100
commit8c500a75a6eafd65b332d0f8346d9059d5293cbb (patch)
tree547f04e9c5888656124917562d8c809f058a15cc /jfr_playoff/tournamentinfo.py
parentc00ca25512ca244cd15ecb79d269ebb60a6c70bf (diff)
Extracting text representation of an exception instead of explicit .message propertyverbose_logging
Diffstat (limited to 'jfr_playoff/tournamentinfo.py')
-rw-r--r--jfr_playoff/tournamentinfo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/jfr_playoff/tournamentinfo.py b/jfr_playoff/tournamentinfo.py
index 24440b3..a646d4e 100644
--- a/jfr_playoff/tournamentinfo.py
+++ b/jfr_playoff/tournamentinfo.py
@@ -162,13 +162,13 @@ class TournamentInfo:
except (IOError, TypeError, IndexError, KeyError) as e:
PlayoffLogger.get('tournamentinfo').warning(
'cannot determine tournament results from DB: %s(%s)',
- type(e).__name__, e.message)
+ type(e).__name__, str(e))
try:
teams = self.__get_html_results()
except (TypeError, IndexError, KeyError, IOError, ValueError) as e:
PlayoffLogger.get('tournamentinfo').warning(
'cannot determine tournament results from HTML: %s(%s)',
- type(e).__name__, e.message)
+ type(e).__name__, str(e))
if self.is_finished() and 'final_positions' in self.settings:
PlayoffLogger.get('tournamentinfo').info(
'setting final positions from tournament results: %s',
@@ -184,13 +184,13 @@ class TournamentInfo:
except (IOError, TypeError, IndexError, KeyError) as e:
PlayoffLogger.get('tournamentinfo').warning(
'cannot determine tournament finished status from DB: %s(%s)',
- type(e).__name__, e.message)
+ type(e).__name__, str(e))
try:
return self.__get_html_finished()
except (TypeError, IndexError, KeyError, IOError, ValueError) as e:
PlayoffLogger.get('tournamentinfo').warning(
'cannot determine tournament finished status from HTML: %s(%s)',
- type(e).__name__, e.message)
+ type(e).__name__, str(e))
PlayoffLogger.get('tournamentinfo').info(
'assuming tournament is finished')
return True
@@ -201,11 +201,11 @@ class TournamentInfo:
except (IOError, TypeError, IndexError, KeyError) as e:
PlayoffLogger.get('tournamentinfo').warning(
'cannot determine tournament link from DB: %s(%s)',
- type(e).__name__, e.message)
+ type(e).__name__, str(e))
try:
return self.__get_html_link(suffix)
except (KeyError, ValueError):
PlayoffLogger.get('tournamentinfo').warning(
'cannot determine tournament link from HTML: %s(%s)',
- type(e).__name__, e.message)
+ type(e).__name__, str(e))
return None