def load_list_setting(settings, name):
 value = settings.get(name)
 if (not value):
  value = []
 if isinstance(value, str_cls):
  value = [value]
 return value

def load_list_setting ( settings , name ) : value = settings . get ( name ) if ( not value ) : value = [ ] if isinstance ( value , str_cls ) : value = [ value ] return value
sometimes users accidentally change settings that should be lists to just individual strings .