Skip to content

Commit

Permalink
Version 3.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adferrand committed Oct 13, 2023
1 parent 11da15c commit ceedf9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
4 changes: 3 additions & 1 deletion src/lexicon/_private/providers/ovh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ceedf9d

Please sign in to comment.