configtypes: Add a "# pragma: no cover"
This commit is contained in:
parent
aec1cf3842
commit
68e60ecc3c
@ -61,7 +61,7 @@ def _validate_regex(pattern, flags):
|
||||
except re.error as e:
|
||||
raise configexc.ValidationError(
|
||||
pattern, "must be a valid regex - " + str(e))
|
||||
except RuntimeError:
|
||||
except RuntimeError: # pragma: no cover
|
||||
raise configexc.ValidationError(
|
||||
pattern, "must be a valid regex - recursion depth exceeded")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user