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.
get_current_locale
1 parent 49d9c0d commit 3c905c1Copy full SHA for 3c905c1
jupyterlab_server/settings_handler.py
@@ -35,13 +35,7 @@ def get(self, schema_name=""):
35
"""Get setting(s)"""
36
# Need to be update here as translator locale is not change when a new locale is put
37
# from frontend
38
- try:
39
- locale = self.get_current_locale()
40
- except web.HTTPError as e:
41
- # fallback in case of missing (404) or misshapen (500) translation schema
42
- locale = DEFAULT_LOCALE
43
- 'Failed loading or validating translation settings schema'
44
-
+ locale = self.get_current_locale()
45
translator.set_locale(locale)
46
47
result, warnings = get_settings(
0 commit comments