aboutsummaryrefslogtreecommitdiff
path: root/quality_control/errors.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-04-13 12:03:08 +0300
committerFrederick Muriuki Muriithi2022-04-13 12:03:08 +0300
commit1cc86cb4b71fe29b40115813836ca1277c1df859 (patch)
treed511c13a53f5e882e29129bbe190afecc6caa0dc /quality_control/errors.py
parentbb8a92b36f85f6f3b2c6cd9ed6bbebd03ecf127c (diff)
downloadgn-uploader-1cc86cb4b71fe29b40115813836ca1277c1df859.tar.gz
Implement test for parsing that fails
* Improve tests that ensure parsing fails in case the file has errors * Add strains.csv file * Implement minimum viable functionality that passes the implemented tests
Diffstat (limited to 'quality_control/errors.py')
-rw-r--r--quality_control/errors.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/quality_control/errors.py b/quality_control/errors.py
index 99f9c97..758a300 100644
--- a/quality_control/errors.py
+++ b/quality_control/errors.py
@@ -4,10 +4,14 @@ class InvalidCellValue(Exception):
"""Raised when a function encounters an invalid value"""
def __init__(self, *args):
- Exception.__init__(self, *args)
+ super().__init__(self, *args)
class InvalidHeaderValue(Exception):
"""Raised when a header contains values not in the reference file."""
def __init__(self, *args):
- Exception.__init__(self, *args)
+ super().__init__(self, *args)
+
+class ParseError(Exception):
+ def __init(self, *args):
+ super().__init__(*args)