summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/vyos/validate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/validate.py b/python/vyos/validate.py
index 4dca82dd8..48a18642b 100644
--- a/python/vyos/validate.py
+++ b/python/vyos/validate.py
@@ -187,7 +187,7 @@ def assert_list(s, l):
def assert_number(n):
- if not n.isnumeric():
+ if not str(n).isnumeric():
raise ValueError(f'{n} must be a number')