From 9d7e6fe8b90a9b66d2f759b8b3a829d80b080b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Mon, 28 Aug 2023 22:18:13 +0200 Subject: [PATCH] [FIX] don't use deprecated get_default_locale --- server_environment/system_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_environment/system_info.py b/server_environment/system_info.py index 00668f8..329920a 100644 --- a/server_environment/system_info.py +++ b/server_environment/system_info.py @@ -29,7 +29,7 @@ def get_server_environment(): except Exception: rev_id = "Can not retrieve revison from git or bzr" - os_lang = ".".join([x for x in locale.getdefaultlocale() if x]) + os_lang = ".".join([x for x in locale.getlocale() if x]) if not os_lang: os_lang = "NOT SET" if os.name == "posix" and platform.system() == "Linux":