Fix old_domains not assigned

This commit is contained in:
Paco 2021-03-21 22:27:57 +01:00
parent fa5b3198cc
commit f295dffd00

View file

@ -686,6 +686,7 @@ def _load_domain_settings():
And fill the holes if any
"""
# Retrieve entries in the YAML
old_domains = None
if os.path.exists(DOMAIN_SETTINGS_PATH) and os.path.isfile(DOMAIN_SETTINGS_PATH):
old_domains = yaml.load(open(DOMAIN_SETTINGS_PATH, "r+"))