From ceedf9d3e9d5ca6c43ae2c9d836fede9bbc40482 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Fri, 13 Oct 2023 04:37:14 +0200 Subject: [PATCH] Version 3.15.1 --- CHANGELOG.md | 2 ++ pyproject.toml | 2 +- src/lexicon/_private/providers/ovh.py | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d51e3ed7b..4b6287fda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## master - CURRENT + +## 3.15.1 - 13/10/2023 ### Modified * Protect `ovh` provider against invalid response bodies that are returned sometimes by OVH APIs. diff --git a/pyproject.toml b/pyproject.toml index 7dd80d2bb..597544cd4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "dns-lexicon" -version = "3.15.0" +version = "3.15.1" description = "Manipulate DNS records on various DNS providers in a standardized/agnostic way" license = "MIT" keywords = [ diff --git a/src/lexicon/_private/providers/ovh.py b/src/lexicon/_private/providers/ovh.py index 0c93f604b..53e0580a9 100644 --- a/src/lexicon/_private/providers/ovh.py +++ b/src/lexicon/_private/providers/ovh.py @@ -260,5 +260,7 @@ def _request(self, action="GET", url="/", data=None, query_params=None): try: return result.json() except requests.exceptions.JSONDecodeError: - LOGGER.warning(f"Unexpected response from OVH APIs for {action} {url} (response dumped as plain text):\n{result.text}") + LOGGER.warning( + f"Unexpected response from OVH APIs for {action} {url} (response dumped as plain text):\n{result.text}" + ) return None