mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Catch exception when can not get a default locale
This commit is contained in:
@ -32,7 +32,10 @@ def get_filesystem_encoding():
|
||||
|
||||
|
||||
def get_locale_encoding():
|
||||
return locale.getdefaultlocale()[1]
|
||||
try:
|
||||
return locale.getdefaultlocale()[1]
|
||||
except ValueError:
|
||||
return None
|
||||
|
||||
|
||||
def get_class_attributes(cls):
|
||||
|
Reference in New Issue
Block a user