diff options
author | Frederick Muriuki Muriithi | 2022-04-13 12:03:08 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-13 12:03:08 +0300 |
commit | 1cc86cb4b71fe29b40115813836ca1277c1df859 (patch) | |
tree | d511c13a53f5e882e29129bbe190afecc6caa0dc /quality_control/errors.py | |
parent | bb8a92b36f85f6f3b2c6cd9ed6bbebd03ecf127c (diff) | |
download | gn-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.py | 8 |
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) |