summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-12-30 16:04:05 +0100
committeremkael <emkael@tlen.pl>2019-12-30 16:04:05 +0100
commit1f5037ee76a65091ac6bbddafb1568772b5e8a64 (patch)
treeaad5552d36f771927b13f48679672b48b9b9a419
parent5e66c1684a8a2b0597fc2633078c23e212cce228 (diff)
Adding NotImplementedError to the list of result info client exceptions that iterate over clients
-rw-r--r--jfr_playoff/data/info.py3
-rw-r--r--jfr_playoff/data/tournament/__init__.py6
2 files changed, 5 insertions, 4 deletions
diff --git a/jfr_playoff/data/info.py b/jfr_playoff/data/info.py
index 230196d..e152b6c 100644
--- a/jfr_playoff/data/info.py
+++ b/jfr_playoff/data/info.py
@@ -61,7 +61,8 @@ class ResultInfo(object):
'%s method returned %s', method, ret)
return ret
except Exception as e:
- if type(e) in client.get_exceptions(method):
+ if type(e) \
+ in client.get_exceptions(method) + (NotImplementedError,):
PlayoffLogger.get('resultinfo').warning(
'%s method raised %s(%s)',
method, type(e).__name__, str(e))
diff --git a/jfr_playoff/data/tournament/__init__.py b/jfr_playoff/data/tournament/__init__.py
index ef16e54..792f634 100644
--- a/jfr_playoff/data/tournament/__init__.py
+++ b/jfr_playoff/data/tournament/__init__.py
@@ -3,10 +3,10 @@ from jfr_playoff.data.info import ResultInfoClient
class TournamentInfoClient(ResultInfoClient):
def get_results_link(self, suffix):
- pass
+ raise NotImplementedError
def is_finished(self):
- pass
+ raise NotImplementedError
def get_tournament_results(self):
- pass
+ raise NotImplementedError