Do not crash on failure to fetch localization percentage

This commit is contained in:
DarkPhoenix
2023-12-05 15:31:18 +06:00
parent c49a914584
commit cc0d6465d6
2 changed files with 6 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ class PFGeneralPref(PreferenceView):
langSizer = wx.BoxSizer(wx.HORIZONTAL)
self.langChoices = sorted([langInfo for lang, langInfo in LocaleSettings.supported_langauges().items()], key=lambda x: x.Description)
self.langChoices = sorted([langInfo for lang, langInfo in LocaleSettings.supported_languages().items()], key=lambda x: x.Description)
pyfaLangsEnabled = bool(self.langChoices)
if pyfaLangsEnabled: