diff --git a/main.py b/main.py index 6644e66..704a895 100644 --- a/main.py +++ b/main.py @@ -35,6 +35,8 @@ def load_data(path, default={}): return json.load(f) except json.decoder.JSONDecodeError: return default + else: + return default # Cache for files sent to the homeserver, prevents reuploading existing files file_cache = load_data(settings["file_cache_path"])