fallback to CONFIG_DEFAULTS on unknown temnplate

This commit is contained in:
Martijn Voncken 2008-07-11 19:41:19 +00:00
parent 03be7a6d8f
commit a462abb5f3
1 changed files with 6 additions and 0 deletions

View File

@ -255,6 +255,12 @@ def set_config_defaults():
if not key in config.config:
config.config[key] = value
changed = True
from render import render
if not config.get("template") in render.get_templates():
config.set("template", CONFIG_DEFAULTS["template"])
changed = True
if changed:
config.save()