summaryrefslogtreecommitdiff
path: root/python/vyos/validate.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos/validate.py')
-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')