mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 19:49:32 +02:00
Dont fail for non-UTF-8 encoded config files, simply replace the undecodeable chars instead
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user