X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/988c0eb318f4af28bad7d7714e7410699d7cae30..5c27752e396ef1b6e794a489b577b0f7be3126b6:/forum/settings/base.py diff --git a/forum/settings/base.py b/forum/settings/base.py index ae36e25..7436f46 100644 --- a/forum/settings/base.py +++ b/forum/settings/base.py @@ -60,6 +60,7 @@ class BaseSetting(object): return v except KeyValue.DoesNotExist: self._temp = (self.default, datetime.now() + timedelta(seconds=TMP_MINICACHE_SECONDS)) + self.save(self.default) except Exception, e: logging.error("Error retrieving setting from database (%s): %s" % (self.name, str(e)))