If the locale is not specified when calling babel.dates.format_datetime(), it throws the following error:
AttributeError: 'NoneType' object has no attribute 'days'
The fix on my Windows 10 machine is the following:
return babel.dates.format_datetime(date, format, locale='en')
If the locale is not specified when calling babel.dates.format_datetime(), it throws the following error:
AttributeError: 'NoneType' object has no attribute 'days'
The fix on my Windows 10 machine is the following:
return babel.dates.format_datetime(date, format, locale='en')