From ff5edfc53da95833556de3492f4e5afd9ebdfe48 Mon Sep 17 00:00:00 2001 From: Adrien Delle Cave Date: Sat, 24 Sep 2022 17:47:39 +0200 Subject: [PATCH] Fixed password_check in sonicprobe.helpers. --- CHANGELOG | 12 ++++++++++++ RELEASE | 2 +- VERSION | 2 +- requirements.txt | 2 +- setup.yml | 4 ++-- sonicprobe/helpers.py | 4 ++-- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index ed0bc55..a23d857 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,15 @@ +python-sonicprobe (0.3.48) unstable; urgency=medium + + * Fixed password_check in sonicprobe.helpers. + + -- Adrien DELLE CAVE (Decryptus) Sat, 24 Sep 2022 17:44:20 +0200 + +python-sonicprobe (0.3.47) unstable; urgency=medium + + * Reviewed requirements. + + -- Adrien DELLE CAVE (Decryptus) Tue, 09 Aug 2022 01:32:00 +0200 + python-sonicprobe (0.3.46) unstable; urgency=medium * Added function password_check in sonicprobe.helpers. diff --git a/RELEASE b/RELEASE index b9c7814..2fb885a 100644 --- a/RELEASE +++ b/RELEASE @@ -1 +1 @@ -0.3.46 +0.3.48 diff --git a/VERSION b/VERSION index b9c7814..2fb885a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.46 +0.3.48 diff --git a/requirements.txt b/requirements.txt index 9de53b3..21f7514 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -httpdis>=0.6.23 +httpdis>=0.6.25 pyOpenSSL python-magic psutil>=2.1 diff --git a/setup.yml b/setup.yml index 17f3ad2..58ae71b 100644 --- a/setup.yml +++ b/setup.yml @@ -4,8 +4,8 @@ description: sonicprobe author: Adrien Delle Cave author_email: pypi@doowan.net copyright: '2022 Adrien Delle Cave' -release: '0.3.46' -version: '0.3.46' +release: '0.3.48' +version: '0.3.48' license: License GPL-3 url: https://github.com/decryptus/sonicprobe python_requires: diff --git a/sonicprobe/helpers.py b/sonicprobe/helpers.py index d5336bc..5c91ea4 100644 --- a/sonicprobe/helpers.py +++ b/sonicprobe/helpers.py @@ -147,10 +147,10 @@ def password_check(value, min_len = 6, max_len = 20, mask = PASSWD_MASK_ALL): xlen = len(v) if xlen < min_len: - raise ValueError("length should be at least " + min_len) + raise ValueError("length should be at least %s" % min_len) if xlen > max_len: - raise ValueError("length should be not be greater than " + max_len) + raise ValueError("length should be not be greater than %s" % max_len) if mask & PASSWD_MASK_DIGIT: if not any(char.isdigit() for char in v):