Ensure config file is always opened with UTF-8
This commit is contained in:
parent
139838c717
commit
721595ef04
1 changed files with 1 additions and 1 deletions
|
|
@ -403,7 +403,7 @@ def load_config(*paths, overrides=None) -> Options:
|
|||
if not path:
|
||||
continue
|
||||
try:
|
||||
f = open(path)
|
||||
f = open(path, encoding='utf-8')
|
||||
except FileNotFoundError:
|
||||
continue
|
||||
with f:
|
||||
|
|
|
|||
Loading…
Reference in a new issue