diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-18 20:24:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 20:24:54 +0200 |
commit | 6e77c5b73eb040e3a9adb35b10c42ea2117f655a (patch) | |
tree | 5851f1adf33c18f94a16c71f8b01175e0d43e428 /python/vyos/validate.py | |
parent | 1e4dd009d711f24c504e0a6b61c5aefd37dcd6ce (diff) | |
parent | 4d0c5c848fda305055b71abf63ccd18478586694 (diff) | |
download | vyos-1x-6e77c5b73eb040e3a9adb35b10c42ea2117f655a.tar.gz vyos-1x-6e77c5b73eb040e3a9adb35b10c42ea2117f655a.zip |
Merge pull request #412 from thomas-mangin/T2475
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): |