Skip to content

Commit 33c5c96

Browse files
committed
FIX: Live client exception for incompatible DBN
1 parent 655af52 commit 33c5c96

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Changelog
22

3+
## 0.24.2 - TBD
4+
5+
#### Bug fixes
6+
- Fixed an issue where the `Live` client would not raise an exception when reading an incompatible DBN version
7+
38
## 0.24.1 - 2023-12-15
49

5-
##### Enhancements
10+
#### Enhancements
611
- Added new publisher value for OPRA MIAX Sapphire
712

813
#### Bug fixes

databento/live/protocol.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,6 @@ def _process_dbn(self, data: bytes) -> None:
312312
try:
313313
self._dbn_decoder.write(bytes(data))
314314
records = self._dbn_decoder.decode()
315-
except ValueError:
316-
pass # expected for partial records
317315
except Exception:
318316
logger.exception("error decoding DBN record")
319317
self.__transport.close()

0 commit comments

Comments
 (0)