1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-02 00:21:05 +03:00

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 2021-03-13 12:53:02 +00:00
parent e777727658
commit 0f83e5b035

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."""