fix KeyError

pull/50/head
meisnate12 4 years ago
parent 339a344a10
commit 99b7bc55aa

@ -45,6 +45,7 @@ class Config:
new_config["tmdb"] = {} new_config["tmdb"] = {}
replace_attr(new_config, "cache", "cache") replace_attr(new_config, "cache", "cache")
replace_attr(new_config, "cache_expiration", "cache") replace_attr(new_config, "cache_expiration", "cache")
if "config" in new_config:
del new_config["cache"] del new_config["cache"]
replace_attr(new_config, "asset_directory", "plex") replace_attr(new_config, "asset_directory", "plex")
replace_attr(new_config, "sync_mode", "plex") replace_attr(new_config, "sync_mode", "plex")

Loading…
Cancel
Save