Skip to content

Commit 3c905c1

Browse files
authored
The error is handle in get_current_locale directly (#210)
1 parent 49d9c0d commit 3c905c1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

jupyterlab_server/settings_handler.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,7 @@ def get(self, schema_name=""):
3535
"""Get setting(s)"""
3636
# Need to be update here as translator locale is not change when a new locale is put
3737
# 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-
38+
locale = self.get_current_locale()
4539
translator.set_locale(locale)
4640

4741
result, warnings = get_settings(

0 commit comments

Comments
 (0)