diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-05-18 17:41:35 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-05-18 17:41:35 +0100 |
commit | 4d0c5c848fda305055b71abf63ccd18478586694 (patch) | |
tree | 5851f1adf33c18f94a16c71f8b01175e0d43e428 /python/vyos/validate.py | |
parent | 1e4dd009d711f24c504e0a6b61c5aefd37dcd6ce (diff) | |
download | vyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.tar.gz vyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.zip |
flake8: T2475: fix a number of issue reported by flake8
Diffstat (limited to 'python/vyos/validate.py')
-rw-r--r-- | python/vyos/validate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/validate.py b/python/vyos/validate.py index e083604c5..6304fa8de 100644 --- a/python/vyos/validate.py +++ b/python/vyos/validate.py @@ -205,7 +205,7 @@ def assert_number(n): def assert_positive(n, smaller=0): assert_number(n) if int(n) < smaller: - raise ValueError(f'{n} is smaller than {limit}') + raise ValueError(f'{n} is smaller than {smaller}') def assert_mtu(mtu, min=68, max=9000): |