Hi guys, I get an error with Flask-Babel.
In my get_locale() function I get this error:
AttributeError: 'dict_keys' object has no attribute 'keys'
for this line of code:
return request.accept_languages.best_match( locales.keys(), app.config.get('BABEL_DEFAULT_LOCALE', 'en'))
I specify that I do not get this error in my IDE but only here.
How could I solve that?