diff options
author | Frederick Muriuki Muriithi | 2022-04-13 12:26:17 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-13 12:26:17 +0300 |
commit | de22890b9c10ece94560dc91a8de2ca3bdb5944b (patch) | |
tree | 66fb928458832bfa6a16938f40bc7a7a50491c15 /quality_control/errors.py | |
parent | 1cc86cb4b71fe29b40115813836ca1277c1df859 (diff) | |
download | gn-uploader-de22890b9c10ece94560dc91a8de2ca3bdb5944b.tar.gz |
Add test for duplicate headers
Diffstat (limited to 'quality_control/errors.py')
-rw-r--r-- | quality_control/errors.py | 6 |
1 files changed, 6 insertions, 0 deletions
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) |