From b751ae183a12b7e7e1b185bc57aeae27daa65167 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 5 Nov 2022 11:17:12 +0700 Subject: [PATCH] fix startup migration error missing enable_snapshot var --- tubearchivist/home/apps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubearchivist/home/apps.py b/tubearchivist/home/apps.py index 0e562c90..6ae55559 100644 --- a/tubearchivist/home/apps.py +++ b/tubearchivist/home/apps.py @@ -85,8 +85,8 @@ class StartupCheck: def snapshot_check(self): """setup snapshot config, create if needed""" - active = self.config_handler.config["application"]["enable_snapshot"] - if not active: + app = self.config_handler.config["application"] + if not app.get("enable_snapshot"): return ElasticSnapshot().setup()