mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[core] Do not show locale error on macOS
This commit is contained in:
parent
f00d23c8c4
commit
42aae4eccf
|
@ -11,6 +11,7 @@ from collections import defaultdict
|
|||
from datetime import timezone
|
||||
from locale import getdefaultlocale
|
||||
from multiprocessing import Queue
|
||||
from platform import system
|
||||
from requests import session
|
||||
from requests.exceptions import HTTPError
|
||||
from uuid import uuid4
|
||||
|
@ -79,7 +80,7 @@ class LegendaryCore:
|
|||
self.egs.language_code, self.egs.country_code = self.language_code, self.country_code
|
||||
except Exception as e:
|
||||
self.log.warning(f'Getting locale failed: {e!r}, falling back to using en-US.')
|
||||
else:
|
||||
elif system() != 'Darwin': # macOS doesn't have a default locale we can query
|
||||
self.log.warning(f'Could not determine locale, falling back to en-US')
|
||||
|
||||
self.update_available = False
|
||||
|
|
Loading…
Reference in a new issue