aboutsummaryrefslogtreecommitdiff
path: root/quality_control
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-04-13 12:26:17 +0300
committerFrederick Muriuki Muriithi2022-04-13 12:26:17 +0300
commitde22890b9c10ece94560dc91a8de2ca3bdb5944b (patch)
tree66fb928458832bfa6a16938f40bc7a7a50491c15 /quality_control
parent1cc86cb4b71fe29b40115813836ca1277c1df859 (diff)
downloadgn-uploader-de22890b9c10ece94560dc91a8de2ca3bdb5944b.tar.gz
Add test for duplicate headers
Diffstat (limited to 'quality_control')
-rw-r--r--quality_control/errors.py6
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)