File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
3
## [ Unreleased]
4
+ ### Added
5
+ - JSON decoding error logging, by @HardNorth
4
6
5
7
## [ 5.5.3]
6
8
### Fixed
Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ def json(self) -> Any:
82
82
if self .__json is NOT_SET :
83
83
try :
84
84
self .__json = self ._resp .json ()
85
- except (JSONDecodeError , TypeError ):
85
+ except (JSONDecodeError , TypeError ) as exc :
86
+ logger .warning ('Unable to decode JSON response, please check your endpoint configuration or API '
87
+ 'key' , exc_info = exc )
86
88
self .__json = None
87
89
return self .__json
88
90
@@ -149,7 +151,9 @@ async def json(self) -> Any:
149
151
if self .__json is NOT_SET :
150
152
try :
151
153
self .__json = await self ._resp .json ()
152
- except (JSONDecodeError , TypeError ):
154
+ except (JSONDecodeError , TypeError ) as exc :
155
+ logger .warning ('Unable to decode JSON response, please check your endpoint configuration or API '
156
+ 'key' , exc_info = exc )
153
157
self .__json = None
154
158
return self .__json
155
159
You can’t perform that action at this time.
0 commit comments