Skip to content

Commit ee61862

Browse files
committed
MOD: Change JSONDecodeError import to use requests
1 parent b489883 commit ee61862

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
- Added `is_last` field to live subscription requests which will be used to improve
88
the handling of split subscription requests
99

10+
#### Bug fixes
11+
- Fixed an issue where `JSONDecodeError` would not be caught when using `simplejson` with `requests` (credit: @xuanqing94)
12+
1013
## 0.54.0 - 2025-05-13
1114

1215
#### Enhancements

databento/common/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from collections.abc import Iterable
66
from collections.abc import Mapping
77
from io import BytesIO
8-
from json.decoder import JSONDecodeError
98
from os import PathLike
109
from typing import IO
1110
from typing import Any
@@ -15,6 +14,7 @@
1514
import requests
1615
from aiohttp import ClientResponse
1716
from aiohttp import ContentTypeError
17+
from requests import JSONDecodeError
1818
from requests import Response
1919
from requests.auth import HTTPBasicAuth
2020

0 commit comments

Comments
 (0)