From de22890b9c10ece94560dc91a8de2ca3bdb5944b Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 13 Apr 2022 12:26:17 +0300 Subject: Add test for duplicate headers --- quality_control/errors.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'quality_control') diff --git a/quality_control/errors.py b/quality_control/errors.py index 758a300..993748c 100644 --- a/quality_control/errors.py +++ b/quality_control/errors.py @@ -12,6 +12,12 @@ class InvalidHeaderValue(Exception): def __init__(self, *args): super().__init__(self, *args) +class DuplicateHeader(Exception): + """Raised when a header contains 2 similar headers.""" + + def __init__(self, *args): + super().__init__(self, *args) + class ParseError(Exception): def __init(self, *args): super().__init__(*args) -- cgit v1.2.3