We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a93ad commit 281c63fCopy full SHA for 281c63f
flask_babel/__init__.py
@@ -120,8 +120,6 @@ def localeselector(self, f):
120
121
This has to return the locale as string (eg: ``'de_AT'``, ``'en_US'``)
122
"""
123
- assert self.locale_selector_func is None, \
124
- 'a localeselector function is already registered'
125
self.locale_selector_func = f
126
return f
127
@@ -133,8 +131,6 @@ def timezoneselector(self, f):
133
131
134
132
This has to return the timezone as string (eg: ``'Europe/Vienna'``)
135
136
- assert self.timezone_selector_func is None, \
137
- 'a timezoneselector function is already registered'
138
self.timezone_selector_func = f
139
140
0 commit comments