parent
6c3f90146f
commit
8c1e95787d
@ -828,7 +828,8 @@ class PercOrInt(_Numeric):
|
|||||||
|
|
||||||
if isinstance(value, str):
|
if isinstance(value, str):
|
||||||
if not value.endswith('%'):
|
if not value.endswith('%'):
|
||||||
raise configexc.ValidationError(value, "does not end with %")
|
raise configexc.ValidationError(
|
||||||
|
value, "needs to end with % or be an integer")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
intval = int(value[:-1])
|
intval = int(value[:-1])
|
||||||
|
Loading…
Reference in New Issue
Block a user