diff options
author | Alban Gruin | 2018-10-09 20:29:56 +0200 |
---|---|---|
committer | Alban Gruin | 2018-10-09 20:29:56 +0200 |
commit | 536061a041b5ea0ea0b64a8f4e5fa3b99a49861a (patch) | |
tree | 9e2cd9c714d16b03f8862bac414c34a9ee8d8a16 /management | |
parent | 8666eeda04d8c57c9857c98cf357eb7572046a9d (diff) |
parsers: ajout d’une exception pour les parseurs
Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
Diffstat (limited to 'management')
-rw-r--r-- | management/parsers/abstractparser.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |