Open Kevv-J opened 2 years ago
Hi @tellarin, any update on this issue? It seems to still be there in the latest version.
@MichaelMWW, could you take a quick look?
@MichaelMWW, could you take a quick look?
The issue is fixed on master branch latest code but not released to PyPI yet, we will follow on it.
Describe the bug forwarded from BotBuilder python SDK , giving time input between 00:00 to 00:59 to recognize_datetime() method gives invalid response that leads to DateTimePrompt giving TypeError: 'NoneType' object is not subscriptable.
To Reproduce Steps to reproduce the behavior:
Expected behavior It should ideally give 12:00 AM as a valid result for 00:00 as input or at least return incorrect result so user is prompted with retry_message.
Sample input/output 00:00 / Result object with resolution = None 00:59 / Result object with resolution = None 00:30 / Result object with resolution = None
Platform (please complete the following information):
Additional context It looks like on_recognize() method inside DateTimePrompt gets a result from recognize_datetime() method. The on_recognize() method expects to get results[0].resolution["values"] but the resolution attribute inside result received from recognize_datetime() is None for the given inputs.