From 99b7bc55aad0b0f2b86e0630325930c56bb8ef62 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 21 Feb 2021 15:21:18 -0500 Subject: [PATCH] fix KeyError --- modules/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/config.py b/modules/config.py index 1d25ddd3..8aa9714c 100644 --- a/modules/config.py +++ b/modules/config.py @@ -45,7 +45,8 @@ class Config: new_config["tmdb"] = {} replace_attr(new_config, "cache", "cache") replace_attr(new_config, "cache_expiration", "cache") - del new_config["cache"] + if "config" in new_config: + del new_config["cache"] replace_attr(new_config, "asset_directory", "plex") replace_attr(new_config, "sync_mode", "plex") replace_attr(new_config, "show_unmanaged", "plex")