mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Create and opt in to dict type safety from JSON
Opt in via the keyword-only argument `dict_only`
This commit is contained in:
@@ -163,7 +163,7 @@ class Options():
|
||||
log.debug(f'Settings: fn="{filename}" created')
|
||||
self.save(filename)
|
||||
return
|
||||
self.data = readfile(filename, lock=True)
|
||||
self.data = readfile(filename, lock=True, dict_only=True)
|
||||
if self.data.get('quicksettings') is not None and self.data.get('quicksettings_list') is None:
|
||||
self.data['quicksettings_list'] = [i.strip() for i in self.data.get('quicksettings').split(',')]
|
||||
unknown_settings = []
|
||||
|
||||
Reference in New Issue
Block a user