settings is not a dict