import datetime
from babel.dates import format_timedelta
format_timedelta(datetime.timedelta(days=42))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "virtualenv/local/lib/python2.7/site-packages/babel/dates.py", line 779, in format_timedelta
plural_form = locale.plural_form(value)
AttributeError: 'NoneType' object has no attribute 'plural_form'
This happens when no locale related environment variables are set, e.g.
This happens when no locale related environment variables are set, e.g.