From 1f5037ee76a65091ac6bbddafb1568772b5e8a64 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 30 Dec 2019 16:04:05 +0100 Subject: Adding NotImplementedError to the list of result info client exceptions that iterate over clients --- jfr_playoff/data/info.py | 3 ++- jfr_playoff/data/tournament/__init__.py | 6 +++--- 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 -- cgit v1.2.3