From 5df65254ec4b7fe58e2e802e707ab524684408e4 Mon Sep 17 00:00:00 2001 From: schubisu <robin.schubert@gmx.de> Date: Mon, 31 Jan 2022 20:28:47 +0100 Subject: [PATCH] fix two typos --- boot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot.py b/boot.py index 744e544..62c4c2e 100644 --- a/boot.py +++ b/boot.py @@ -105,7 +105,7 @@ class _MynitConfig: print("Wrote configuration to file") def register(self, name, verbose_name, schema): - """Rgister a configuration schema.""" + """Register a configuration schema.""" self._schemas[name] = (verbose_name, schema) def _has_setting(self, schema, setting): @@ -130,7 +130,7 @@ class _MynitConfig: if not self._has_setting(schema, setting): raise KeyError("Setting %s in schema %s is unknown." % (setting, schema)) - self._configu.setdefault(schema, {})[setting] = value + self._config.setdefault(schema, {})[setting] = value self._save() def __getitem__(self, schema): -- GitLab