mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-29 02:44:48 +08:00
🐛 修复获取系统语言代码的逻辑,处理None值的情况
This commit is contained in:
parent
4d87a3c0b7
commit
fd3f6272f1
@ -217,6 +217,7 @@ def get_system_lang_code() -> str:
|
||||
if l[0] is None:
|
||||
return "zh-CN"
|
||||
else:
|
||||
|
||||
return l[0].replace("_", "-")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user