From 536061a041b5ea0ea0b64a8f4e5fa3b99a49861a Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 9 Oct 2018 20:29:56 +0200 Subject: parsers: ajout d’une exception pour les parseurs Signed-off-by: Alban Gruin --- management/parsers/abstractparser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/management/parsers/abstractparser.py b/management/parsers/abstractparser.py index 8d55b6d..3164082 100644 --- a/management/parsers/abstractparser.py +++ b/management/parsers/abstractparser.py @@ -50,3 +50,8 @@ class AbstractParser(metaclass=abc.ABCMeta): def get_source(self): return self._make_request(self.source.url) + + +class ParserError(Exception): + def __init__(self, message): + super(Exception, self).__init__(message) -- cgit v1.2.1