|
@@ -38,11 +38,11 @@ def get_lang() -> str:
|
38
|
38
|
"""
|
39
|
39
|
# TODO - A.P - language code access from test environment
|
40
|
40
|
# try based workaround instead of raw get language call for test
|
41
|
|
- # environment only, this should be set with tg.i18n.set_lang in
|
42
|
|
- # be I was unable to achieve that.
|
|
41
|
+ # environment only, this should be set with tg.i18n.set_lang but
|
|
42
|
+ # I was unable to achieve that.
|
43
|
43
|
try:
|
44
|
44
|
result = tg.i18n.get_lang(all=False)[0]
|
45
|
|
- except:
|
|
45
|
+ except IndexError:
|
46
|
46
|
result = 'en'
|
47
|
47
|
return result
|
48
|
48
|
|