We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24ccdc7 commit eae1904Copy full SHA for eae1904
dialogy/plugins/text/duckling_plugin/__init__.py
@@ -793,7 +793,7 @@ def _reshape(
793
duration_cast_operator=duration_cast_operator,
794
constraints=self.constraints,
795
)
796
- if entity.value:
+ if entity and entity.value:
797
entity.add_parser(self)
798
deserialized_entities.append(entity)
799
return deserialized_entities
dialogy/types/entity/time/__init__.py
@@ -270,5 +270,11 @@ def from_duckling(
270
values=datetime_values,
271
grain=grain,
272
273
+
274
+ try:
275
+ time_entity.collect_datetime_values()
276
+ except ValueError:
277
+ return None
278
279
time_entity.set_entity_type()
280
return time_entity
0 commit comments