From 55cc4dbb5c9b1823b23b5c914f2754c6a6c18d77 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 1 Aug 2019 23:13:23 +0200 Subject: [PATCH] Fix Config.unset() making the name known --- scripts/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/config.py b/scripts/config.py index aaea48408..81c35d0a8 100755 --- a/scripts/config.py +++ b/scripts/config.py @@ -131,9 +131,10 @@ class Config: def unset(self, name): """Make name unset (inactive). - name remains known. + name remains known if it was known before. """ - self.set(name) + if name not in self.settings: + return self.settings[name].active = False def adapt(self, adapter):