diff options
author | Frederick Muriuki Muriithi | 2022-04-13 10:01:57 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-13 10:01:57 +0300 |
commit | 0cc8fd5fb2a026662dc2bd12f6bad9f68e5da5b0 (patch) | |
tree | 9459aa5588b3f53b99076cac87d1d60c85b2aa68 /quality_control/standard_error.py | |
parent | d4c2c2fccb038cdba5cc618437a0b5f67064b1b2 (diff) | |
download | gn-uploader-0cc8fd5fb2a026662dc2bd12f6bad9f68e5da5b0.tar.gz |
Update Exception name
Change the exception name to be more descriptive.
Diffstat (limited to 'quality_control/standard_error.py')
-rw-r--r-- | quality_control/standard_error.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quality_control/standard_error.py b/quality_control/standard_error.py index ae1e378..7b49913 100644 --- a/quality_control/standard_error.py +++ b/quality_control/standard_error.py @@ -1,12 +1,12 @@ """Contain logic for checking standard error files""" import re -from .errors import InvalidValue +from .errors import InvalidCellValue def valid_value(val): if re.search("^[0-9]+\.[0-9]{6,}$", val): return float(val) - raise InvalidValue( + raise InvalidCellValue( f"Invalid value '{val}'.\n" "Expected string representing a number with at least six decimal " "places.") |