From bcb4bda7e6282c4bf9e0e93cefb7b242bf46b4b1 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 26 Sep 2020 15:00:42 -0500 Subject: [PATCH] Fix bug in App Settings when list value is "missing" --- tailbone/views/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tailbone/views/settings.py b/tailbone/views/settings.py index ae580337..94a71853 100644 --- a/tailbone/views/settings.py +++ b/tailbone/views/settings.py @@ -228,7 +228,8 @@ class AppSettingsView(View): return self.rattail_config.getbool(setting.namespace, setting.name) if setting.data_type is list: return '\n'.join( - self.rattail_config.getlist(setting.namespace, setting.name)) + self.rattail_config.getlist(setting.namespace, setting.name, + default=[])) return self.rattail_config.get(setting.namespace, setting.name) def save_setting_value(self, setting, value):