Delete setting bugfix

This commit is contained in:
Kload 2013-12-05 10:45:23 +00:00
parent e52e5187e1
commit 74e129d4dc

View file

@ -564,7 +564,7 @@ def app_setting(app, key, value=None, delete=False):
# Do not fail if setting file is not there
app_settings = {}
if value is None:
if value is None and not delete:
# Get the value
if app_settings is not None and key in app_settings:
print(app_settings[key])