Skip to content

Commit 940ef44

Browse files
committed
bugfix for null dollarVector in response
1 parent 3c097ce commit 940ef44

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

CHANGES

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
v 2.0.1
2+
=======
3+
bugfix: receiving `'$vector': null` caused response parsing to break
4+
15
v 2.0.0
2-
==========
6+
=======
37
Collections admit `DataAPIMap` in writing and support `DataAPIDate` as well (the latter coming with the same timezone caveats as `datetime.date`)
48
(plus all of the v2 pre-releases below)
59

astrapy/data/utils/collection_converters.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,8 @@ def postprocess_collection_response_value(
163163
else:
164164
return DataAPIVector.from_bytes(_bytes).data
165165
else:
166-
raise ValueError(
167-
f"Response parsing failed at path '{path}': unexpected data type "
168-
f"found under $vector: {type(value)}"
169-
)
166+
return value
167+
170168
if isinstance(value, dict):
171169
value_keys = set(value.keys())
172170
if value_keys == {"$date"}:

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
requires-python = ">=3.8"
3-
version = "2.0.0"
3+
version = "2.0.1"
44
name = "astrapy"
55
description = "AstraPy is a Pythonic SDK for DataStax Astra and its Data API"
66
authors = [
@@ -25,7 +25,7 @@ classifiers = [
2525
]
2626

2727
[tool.poetry]
28-
version = "2.0.0"
28+
version = "2.0.1"
2929
name = "astrapy"
3030
description = "AstraPy is a Pythonic SDK for DataStax Astra and its Data API"
3131
authors = [

0 commit comments

Comments
 (0)