mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-29 17:16:38 +00:00
Dont fail for non-UTF-8 encoded config files, simply replace the undecodeable chars instead
This commit is contained in:
parent
721595ef04
commit
aad4a1fd6a
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, encoding='utf-8')
|
||||
f = open(path, encoding='utf-8', errors='replace')
|
||||
except FileNotFoundError:
|
||||
continue
|
||||
with f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue