From 73b99887990be55787964d6ae3bdd36711918178 Mon Sep 17 00:00:00 2001 From: UltimatePancake Date: Thu, 21 Nov 2024 16:38:26 +0100 Subject: [PATCH 1/2] log improvements + version fix --- notifications_utils/recipients.py | 6 +++--- notifications_utils/version.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/notifications_utils/recipients.py b/notifications_utils/recipients.py index 7fa8aba4d..85624f537 100644 --- a/notifications_utils/recipients.py +++ b/notifications_utils/recipients.py @@ -589,13 +589,13 @@ def validate_nl_phone_number(number): number = normalise_phone_number(number).lstrip(nl_prefix).lstrip("0") if not number.startswith("6"): - raise InvalidPhoneError("Not a dutch mobile number") + raise InvalidPhoneError(f"Not a dutch mobile number (should start with 6) :: {number}") if len(number) > 9: - raise InvalidPhoneError("Too many digits") + raise InvalidPhoneError(f"Too many digits (>9) :: {len(number)}") if len(number) < 9: - raise InvalidPhoneError("Not enough digits") + raise InvalidPhoneError(f"Not enough digits (<9) :: {len(number)}") return f"{nl_prefix}{number}" diff --git a/notifications_utils/version.py b/notifications_utils/version.py index c60203d70..3f68b1c41 100644 --- a/notifications_utils/version.py +++ b/notifications_utils/version.py @@ -5,4 +5,4 @@ # - `make version-minor` for new features # - `make version-patch` for bug fixes -__version__ = "75.0.0" # 9f541edcecccf37d8e9604584f6d57a7 +__version__ = "75.2.3-rc" From 0d4544fcf4580daf4329d425f08e2f4344182964 Mon Sep 17 00:00:00 2001 From: Pier-Angelo Gaetani Date: Fri, 22 Nov 2024 15:10:32 +0100 Subject: [PATCH 2/2] final release version --- notifications_utils/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications_utils/version.py b/notifications_utils/version.py index 3f68b1c41..8ab269a5b 100644 --- a/notifications_utils/version.py +++ b/notifications_utils/version.py @@ -5,4 +5,4 @@ # - `make version-minor` for new features # - `make version-patch` for bug fixes -__version__ = "75.2.3-rc" +__version__ = "75.2.3"