mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Ignore parse errors of preferences file.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2613.
This commit is contained in:
@@ -36,7 +36,9 @@ def init():
|
||||
"ignore_empty_install_directory", False
|
||||
)
|
||||
is_first_start = False
|
||||
except KeyError:
|
||||
except (KeyError, ValueError):
|
||||
# KeyError in case of missing contents, ValueError in case of decoding
|
||||
# errors from a corrupted file.
|
||||
__dcs_saved_game_directory = ""
|
||||
__dcs_installation_directory = ""
|
||||
__last_save_file = ""
|
||||
|
||||
Reference in New Issue
Block a user