We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2fcf2a + ddd610b commit 29ca99fCopy full SHA for 29ca99f
pipeline/src/properties.py
@@ -202,7 +202,15 @@ def deserialize_item(item):
202
elif datetime in self.types:
203
return datetime.fromisoformat(item)
204
elif date in self.types:
205
- return date.fromisoformat(item)
+ try:
206
+ return date.fromisoformat(item)
207
+ except ValueError as err:
208
+ # if a datetime string has been provided
209
+ # take the date part.
210
211
+ return datetime.fromisoformat(item).date()
212
+ except ValueError:
213
+ raise err
214
elif all(issubclass(t, Node) for t in self.types):
215
# use data["@type"] to figure out class to use
216
if "@type" in item:
0 commit comments