Use get_all_data instead of get([], ...) construct

This commit is contained in:
Gina Häußge 2015-10-20 15:41:44 +02:00
parent 7ea1578bda
commit ffcbdba858

View file

@ -1356,7 +1356,7 @@ class SettingsPlugin(OctoPrintPlugin):
try:
# let's fetch the current persisted config (so only the data on disk,
# 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:
# no config persisted, nothing to do => get out of here
return