From e5dfc9e30688752752c3ec20714c9b8c83efa4f7 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sun, 16 Dec 2018 01:58:35 +0300 Subject: fixed cleanup for non-unixsocket configs --- kvmd/apps/cleanup/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmd/apps') diff --git a/kvmd/apps/cleanup/__init__.py b/kvmd/apps/cleanup/__init__.py index 22a9cede..89492ebd 100644 --- a/kvmd/apps/cleanup/__init__.py +++ b/kvmd/apps/cleanup/__init__.py @@ -37,7 +37,7 @@ def main() -> None: except subprocess.CalledProcessError: pass - unix_path = config["server"]["unix"] + unix_path = config["server"].get("unix", "") if unix_path and os.path.exists(unix_path): logger.info("Removing socket %r ...", unix_path) os.remove(unix_path) -- cgit v1.2.3