Handle empty http_cache section
@@ -66,7 +66,7 @@ def cache_path(self):
def http_cache(self):
from plextraktsync.config.HttpCacheConfig import HttpCacheConfig
- cache = self["http_cache"] if "http_cache" in self else {"policy": {}}
+ cache = self["http_cache"] if "http_cache" in self and self["http_cache"] else {"policy": {}}
return HttpCacheConfig(**cache)
