mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-24 15:16:21 -07:00
fix localization nullpointer exception
This commit is contained in:
parent
46bda1d683
commit
96a5fd0f9f
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@
|
||||||
import locale
|
import locale
|
||||||
|
|
||||||
system_locale = locale.getdefaultlocale()[0]
|
system_locale = locale.getdefaultlocale()[0]
|
||||||
system_language = system_locale[0:2]
|
# system_locale may be nil
|
||||||
|
system_language = system_locale[0:2] if system_locale is not None else "en"
|
||||||
|
|
||||||
windows_font_name_map = {
|
windows_font_name_map = {
|
||||||
'en' : 'cour',
|
'en' : 'cour',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue