This commit is contained in:
Prohurtz 2023-05-11 11:31:48 -07:00 committed by GitHub
parent 9ef1f1f893
commit 3c451b41a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -81,13 +81,13 @@ class EyeTrackConfig(BaseModel):
with open(CONFIG_FILE_NAME, "r") as settings_file:
return EyeTrackConfig(**json.load(settings_file))
except json.JSONDecodeError:
print("Failed to load settings file.")
print("[INFO] Failed to load settings file")
load_config = None
if os.path.exists(BACKUP_CONFIG_FILE_NAME):
try:
with open(BACKUP_CONFIG_FILE_NAME, "r") as settings_file:
load_config = EyeTrackConfig(**json.load(settings_file))
print("using backup settings")
print("[INFO] Using backup settings")
except json.JSONDecodeError:
pass
if load_config is None:

View File

@ -18,6 +18,7 @@
@@@ @ @@@@@@@@#
@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@(
Intensity Based Openess By: Prohurtz, PallasNeko (Optimization)
Algorithm App Implementations By: Prohurtz