macos config: Respect suppress argument to config.delete()

Else the blind deletion of the shipyard key at startup causes a fatal
exception.
This commit is contained in:
Athanasius committed 2021-04-01 14:45:50 +01:00
1 parent e777727658
commit 0f83e5b035
1 file changed
+6 -1
+6 -1
View File
@@ -670,7 +670,12 @@ class MacConfig(AbstractConfig):
:param key: the key to delete
"""
del self._settings[key]
try:
del self._settings[key]
except Exception:
if suppress:
pass
def save(self) -> None:
"""Save the configuration."""