From a76c981e4397c104975e2f51718639ab28d0ad2b Mon Sep 17 00:00:00 2001 From: theborch Date: Thu, 14 Aug 2025 10:51:50 -0500 Subject: [PATCH 1/2] fix:missing error_code on generic http exceptions --- src/britive/helpers/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/britive/helpers/utils.py b/src/britive/helpers/utils.py index a40240d..3b4ba02 100644 --- a/src/britive/helpers/utils.py +++ b/src/britive/helpers/utils.py @@ -26,7 +26,8 @@ def check_response_for_error(status_code, content) -> None: if content.get('details'): message += f' - {content.get("details")}' else: - message = f'{status_code} - {content}' + error_code = status_code + message = f'{status_code}{" - " + content if content else ""}' raise unauthorized_code_map.get( error_code, bad_request_code_map.get( From e98a0a5bfb26645c8d589bc8f1528a4ea9884237 Mon Sep 17 00:00:00 2001 From: theborch Date: Thu, 14 Aug 2025 10:55:27 -0500 Subject: [PATCH 2/2] v4.3.1 --- CHANGELOG.md | 22 ++++++++++++++++++++++ src/britive/__init__.py | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f8caca..414e167 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Change Log (v2.8.1+) +## v4.3.1 [2025-08-14] + +__What's New:__ + +* None + +__Enhancements:__ + +* None + +__Bug Fixes:__ + +* Fixed unbound variable error when `check_response_for_error` is run against generic HTTP error. + +__Dependencies:__ + +* None + +__Other:__ + +* None + ## v4.3.0 [2025-07-08] __What's New:__ diff --git a/src/britive/__init__.py b/src/britive/__init__.py index 5ee6158..376d9cc 100644 --- a/src/britive/__init__.py +++ b/src/britive/__init__.py @@ -1 +1 @@ -__version__ = '4.3.0' +__version__ = '4.3.1'