Skip to content

Commit d230f1d

Browse files
authored
fix: load setting error when some option not exist
1 parent 37cdc28 commit d230f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/ktem/ktem/pages/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def load_setting(self, user_id=None):
362362
settings = result[0].setting
363363

364364
output = [settings]
365-
output += tuple(settings[name] for name in self.component_names())
365+
output += tuple(settings.get(name) for name in self.component_names())
366366
return output
367367

368368
def save_setting(self, user_id: int, *args):

0 commit comments

Comments
 (0)