Handle empty http_cache section
MODIFY
plextraktsync/config/Config.py
plextraktsync/config/Config.py
@@ -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)

Handle empty http_cache section