Use get_all_data instead of get([], ...) construct
This commit is contained in:
1 parent
7ea1578bda
commit
ffcbdba858
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user