Use get_all_data instead of get([], ...) construct
This commit is contained in:
parent
7ea1578bda
commit
ffcbdba858
1 changed files with 1 additions and 1 deletions
|
|
@ -1356,7 +1356,7 @@ class SettingsPlugin(OctoPrintPlugin):
|
||||||
try:
|
try:
|
||||||
# let's fetch the current persisted config (so only the data on disk,
|
# let's fetch the current persisted config (so only the data on disk,
|
||||||
# without the defaults)
|
# without the defaults)
|
||||||
config = self._settings.get([], asdict=True, incl_defaults=False, error_on_path=True)
|
config = self._settings.get_all_data(merged=False, incl_defaults=False, error_on_path=True)
|
||||||
except NoSuchSettingsPath:
|
except NoSuchSettingsPath:
|
||||||
# no config persisted, nothing to do => get out of here
|
# no config persisted, nothing to do => get out of here
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue